Article ID: 152376 - Last Review: November 21, 2006 - Revision: 3.1 HOWTO: How To Disable Push Buttons on a DialogBar in MFCThis article was previously published under Q152376 On This PageSUMMARY
Push-button controls on a DialogBar cannot be disabled by calling
EnableWindow. The following code has no effect:
MORE INFORMATION
Controls on a DialogBar behave like the bitmaps on a Toolbar. They can be
enabled or disabled by manually adding an ON_UPDATE_COMMAND_UI within the
message map of the appropriate class (such as CMainFrame).
Step-by-Step ExampleAfter you have placed a control on your DialogBar, such as a push-button with a resource ID of IDC_BUTTON1, use the following steps to manage the state of the control:
APPLIES TO
| Article Translations
|

Back to the top
