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 » Ribbon Bar context menu Collapse All
Subject Author Date
Vrinda Savargaonkar Jun 25, 2007 - 9:29 AM

Dear Sir,

In my ribbonbar mdi ( version 2.70) application when we right click on ribbon bar one context menu appear having option
1) customize quick access toolbar
2) reset quick tool bar
3) place quick access toolbar below the ribbon
4) minize the ribbon bar
the similar menu appear on chevrron button of quick access toolbar .

How can i play with this menu i.e how to add or remove options from this menu.

Actually I want to remove the option 3 & 4 from menu completely.

How can i remove these options 3 & 4 from menu?


One more questions is how to place bitmap on CExtResizable dialog?


Regards.




Technical Support Jun 27, 2007 - 10:11 AM

You should remove the ID_EXT_RIBBON_QATB_PLACE_BELOW and ID_EXT_RIBBON_MINIMIZE commands from the ribbon menus. You should a custom CExtRibbonBar-derived class which handles the CExtPopupMenuWnd::g_nMsgPrepareMenu registered message, which allows you to modify pop-up menus at run time. Please also read the following FAQ article related to this message:

How to insert menu items at run time?


In you code, find the menu items with the ID_EXT_RIBBON_QATB_PLACE_BELOW and ID_EXT_RIBBON_MINIMIZE command identifiers and remove them.