Example #1
0
void PropertyTree::OnSize(UINT nType, int cx, int cy) 
{
    CWnd::OnSize(nType, cx, cy);

    RecreateBackBuffer(cx, cy);

    UpdateScrollbar();
    Invalidate();
    UpdateWindow();

    // inform all items that a resize has been made
    UpdateMoveAllItems();
}
void CPropTreeList::OnSize(UINT nType, int cx, int cy)
{
	CWnd::OnSize(nType, cx, cy);

	RecreateBackBuffer(cx, cy);

	if (m_pProp) {
		UpdateResize();
		Invalidate();
		UpdateWindow();

		// inform all items that a resize has been made
		m_pProp->UpdateMoveAllItems();
	}
}