Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Paul Boswell
|
Nov 26, 2008 - 11:50 AM
|
I use EnableWindow(FALSE) to set the state of a CExtComboBox in a CExtToolControlBar to disabled. Immediately after the call, the combo box goes disabled. However, whenever I move the cursor over the box, it becomes enabled again.
How do I keep it disabled?
|
|
Technical Support
|
Nov 26, 2008 - 1:33 PM
|
Please add a command updating method for the button which was used for attaching a combo box control in the toolbar and enable this command. Alternatively you can add a command hander method for this button.
Toolbar buttons are controlled by MFC’s command updating mechanism. If a toolbar button has no handler/updating methods, it will be disabled. If some window is attached to a toolbar button, the window’s enabled state is automatically synchronized with the state of the toolbar button.
|
|