Why do I get a list of toolbars in QAT popup menu |
Post Reply |
Author | |
DavidH
Groupie Joined: 24 March 2007 Status: Offline Points: 59 |
Post Options
Thanks(0)
Posted: 23 January 2009 at 11:19am |
This is about the small arrow at the right of the Quick Access Toolbar on a Ribbon.
I have the problem that the toolbars that I add to the CommandBars are shown in the drop down menu when clicking this arrow. I'm aware that (according to the Fluent UI license) toolbars cannot be used in combination with the ribbon, but I use them as floating mini frames to facilitate hundreds of elements that are not suited to put into galleries. My code to add a toolbar: class CRailPartsToolBar : public CXTPToolBar { ... } CXTPCommandBars* pCommandBars = GetCommandBars(); pCommandBars->Add("Name 1" , xtpBarFloating, RUNTIME_CLASS(CRailPartsToolBar)); With this, a menu item 'Name 1" appears in the popup menu along with the normal 'Customize' items. I cannot find where in the Codejock sources this happens, or how to prevent this from happening. Any help will be highly appreciated! |
|
DavidH
Groupie Joined: 24 March 2007 Status: Offline Points: 59 |
Post Options
Thanks(0)
|
ogreen
Newbie Joined: 13 February 2009 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
David,
Where do you place the command pToolbar->SetContextMenuPresent(FALSE)? Thanks, Owen |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |