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 |
|
Jose Andres
|
Jul 26, 2006 - 7:53 PM
|
I wonder how the framework selects which control bars get inserted in the pop-up menu by default. When I right-click on the empty area of the toolbar menu, I get a popup menu of control bars. In one application, I have all the control bars showed up, this is what I wanted. In another application, only toolbars showed up, the menu bar and resizable dialog bar didn’t show up. I have checked many times, there doesn’t seem to be any difference between the two applications as far as the way I use control bars is concerned. What could be the problem? I am aware of the FAQ on how to customize popup menu, but I don’t want to customize it, the default behavior should be just what I wanted.
|
|
Technical Support
|
Jul 27, 2006 - 8:34 AM
|
A control bar is not displayed in context menus only if Prof-UIS cannot find the display name of this control bar. This is true for control bars of all types. The display name can be one of the following: 1) The window text of the control bar specified when it is created with CExtControlBar::Create(). 2) The text of the menu item which has the same command identifier as the control bar’s dialog control identifier specified when it is created with CExtControlBar::Create() . Typically this menu item is used for showing/hiding the control bar. So please check this for your menu bar and dialog bar. Besides all control bars should have unique identifiers otherwise you will be unable to show/hide some of them and restore their states. Finally, it is possible to hide any control bar in context menus if you set the CExtControlBar::m_bAppearInDockSiteControlBarPopupMenu property to false .
|
|