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 » Toolbar menu sequence Collapse All
Subject Author Date
John Ritzenthaler May 18, 2009 - 5:38 PM

When right-clicking in an empty area of the toolbar, a menu appears listing the various toolbars.


What determines the sequence of the entries in this toolbar?

Technical Support May 19, 2009 - 1:29 PM

The bars inserted in the same order provided by the CExtControlBar::_GetFrameControlBars() method. It is defined by the CExtControlBar::g_AllBars array. The CExtControlBar::CExtControlBar() constructor adds all bars to this array and the CExtControlBar::~CExtControlBar() destructor removes each bar from it. So, the bars in the context menu appear in the order which defined by the order of C++ object instantiation. If you don’t like the context menu constructed by default , you can modify it or even rebuild from scratch like the ProfStudio sample application does it by handling the CExtControlBar::g_nMsgConstructPopupMenu registered message:

http://www.prof-uis.com/prof-uis/tech-support/faq/pop-up-menus.aspx#how-to-modify-or-suppress-entirely-built-in-pop-up-menus-available-in-prof-uis