CWnd::UpdateDialogControls

voidUpdateDialogControls(CCmdTarget*pTarget,BOOLbDisableIfNoHndler**);**

Parameters

pTarget

Points to the main frame window of the application, and is used for routing update messages*.*

bDisableIfNoHndler

Flag that indicates whether a control that has no update handler should be automatically displayed as disabled.

Remarks

Call this member function to update the state of dialog buttons and other controls in a dialog box or window that uses the ON_UPDATE_COMMAND_UI callback mechanism.

If a child control does not have a handler and bDisableIfNoHndler is TRUE, then the child control will be disabled.

The framework calls this member function for controls in dialog bars or toolbars as part of the application’s idle processing.

CWnd OverviewClass MembersHierarchy Chart

See Also   CFrameWnd::m_bAutoMenuEnable