SECTreeCtrl::EnableDynamicLayout
void SECTreeCtrl:: EnableDynamicLayout(CMFCDynamicLayout::MoveSettings moveSettings, CMFCDynamicLayout::SizeSettings sizeSettings);
Enables dynamic moving and resizing or the tree control.
Defined in: TrCtlX.h
Return Value
void
Parameters
moveSettings
A structure that describes how the control should be moved as the window size changes.
sizeSettings
A structure that describes how the control should be resized as the window size changes.
Comments
Settings layout properties in the resource editor do not work for SECTreeCtrl.
For a dialog, use a call in OnInitDialog
() like the following (select appropriate for moveSettings and sizeSettings):
pTreeCtrl> EnableDynamicLayout(CMFCDynamicLayout::MoveNone(), CMFCDynamicLayout::SizeHorizontal(100));
For a FormView, use a call in OnInitialUpdate()
like the following:
m_bInitDlgCompleted
= FALSE
;
m_pTreeCtrlX > EnableDynamicLayout(CMFCDynamicLayout::MoveNone(), CMFCDynamicLayout::SizeHorizontal(100));
m_bInitDlgCompleted
= TRUE
;