Dela via


CWnd::UpdateDialogControls

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 
);

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

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.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

CFrameWnd::m_bAutoMenuEnable

Concepts

CWnd Members