
How to resize tree control area
You may try to overide your dialogs OnSize function, and there call the
MoveWindow function
void CDbTreeView::OnSize(UINT nType, int cx, int cy)
{
CFormView::OnSize(nType, cx, cy);
if(!m_cTreeCtrl == NULL)
m_cTreeCtrl.MoveWindow( 0, 0, cx, cy); // resize the tree ctrl so it
used the whole window space
Quote:
}
Mark: if this is what you want to do (use the whole window space) you
should problably use CTreeView insted of CtreeCtrl.
TEK
Quote:
> Hi everybody :
> I writing an application that contains a dialog that such as project
> workspace in
> MSVC+-+-, i've created the dialog that contains the tree control but how
> to resize the tree
> control area..it is fix, i can resize the dialog but when i resize the
> dialog, the tree control area still remain the same. How to resize the
> tree control as well when i resize the dialog.