Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Why do I get a list of toolbars in QAT popup menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why do I get a list of toolbars in QAT popup menu

 Post Reply Post Reply
Author
Message
DavidH View Drop Down
Groupie
Groupie


Joined: 24 March 2007
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Topic: Why do I get a list of toolbars in QAT popup menu
    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!
Back to Top
DavidH View Drop Down
Groupie
Groupie


Joined: 24 March 2007
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote DavidH Quote  Post ReplyReply Direct Link To This Post Posted: 27 January 2009 at 2:20pm

Hi all,

My problem has been resolved through regular support.

The solution is to call:

pToolbar->SetContextMenuPresent(FALSE);

David.


Back to Top
ogreen View Drop Down
Newbie
Newbie


Joined: 13 February 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote ogreen Quote  Post ReplyReply Direct Link To This Post Posted: 27 February 2009 at 12:50pm
David,

Where do you place the command pToolbar->SetContextMenuPresent(FALSE)?

Thanks,
Owen
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.