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 » Quick Access Toolbar Collapse All
Subject Author Date
flsilva May 3, 2010 - 1:51 PM

Good afternoon,
I have a doubt about the Quick Access Toolbar. I wish the toolbar
in my project but do not want the user to add or remove any button, is there any way to disable the customization of the toolbar?
And along with that disable the options button within the application button?
Thanks

Technical Support May 4, 2010 - 1:50 PM

You can modify the context menu of the ribbon bar dynamically. You should handle the CExtPopupMenuWnd::g_nMsgPrepareOneMenuLevel registered message in your CExtRibbonBar-derived class like described here:

http://www.prof-uis.com/prof-uis/tech-support/faq/pop-up-menus.aspx#how-to-insert-menu-items-at-run-time

Your message handler should remove the ID_EXT_RIBBON_QATB_RESET, ID_EXT_RIBBON_QATB_ADD_TO and ID_EXT_RIBBON_QATB_REMOVE_FROM menu command items.
You also need to override the CExtRibbonBar::OnRibbonOptionsDialogInitPageRTCs() virtual method. Your method should not invoke the parent class method to remove the quick access toolbar customization page from the ribbon options dialog.