Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » OnUpdateCmdUI for toolbar buttons in dialogs Collapse All
Subject Author Date
Chris Jackson May 31, 2005 - 7:27 AM

I have a toolbar embedded in a CExtResizable dialog that is the child of a CExtControlBar.  Unfortunately the OnUpdateCmdUI functions for the buttons on that toolbar do not seem to be called when the mouse isn’t over the control bar. 


I have tried handling WM_UPDATECMDUI in the mainframe and passing the message on to the control bar, but it doesn’t help.  Can you help?

Technical Support May 31, 2005 - 12:02 PM

The command updating for toolbar buttons inside the dialog is performed by the following static method:

CExtControlBar::DoCustomModeUpdateControlBars( pDialog );
It is invoked only from the CExtResizableDialog::WindowProc() method and this explains mouse event dependency. You can invoke this method from your code when appropriate.