This documentation is archived and is not being maintained.


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.

void UpdateDialogControls( 
   CCmdTarget* pTarget, 
   BOOL bDisableIfNoHndler  


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


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

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.

Header: afxwin.h