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 |
|
Stephan Finkler
|
May 19, 2005 - 9:16 AM
|
Hi,
I’ve got an built in combobox and a button in toolbar. Customization is enabled. If CMainFrame::OnTextFieldVerify is called I would like to enable the button next to the combobox.
I call the ON_UPDATE_COMMAND_UI from for the button in CMainFrame::OnTextFieldVerify with CExtCmdItem CmdItem(IDPB_IE_LIST_SAVE); CmdItem.DoUpdateCmdUI(this, IDPB_IE_LIST_SAVE); CExtCustomizeSite::RedrawCommandItems( IDPB_IE_LIST_SAVE ); The update_command_handler is called but the button is still disabled. I think its because the CExtBarTextFieldButton::OnInplaceControlRun. How can I enable the button????
|
|
Technical Support
|
May 19, 2005 - 11:08 AM
|
You should not invoke MFC’s command updating mechanism from virtual methods of the CExtCustomizeSite class. In most cases the command updating chains are invoked automatically by the Prof-UIS framework. If it is not, then we should discuss your requirements in details. Besides, there is no point in analyzing relative positions of toolbar buttons and menu items in the customizable application because everything can be drag-and-dropped to a new location, added or removed. You should operate only with command identifiers.
|
|