Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Add a new menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Add a new menu

 Post Reply Post Reply
Author
Message
davidbut View Drop Down
Newbie
Newbie


Joined: 19 February 2004
Location: United Kingdom
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote davidbut Quote  Post ReplyReply Direct Link To This Post Topic: Add a new menu
    Posted: 19 February 2004 at 10:26am

Hi,

I am currently evaluating Xtreme Command Bars with a view to using in our product. I have one requirement which I can't see how to do, that is to add a new menu to the menu bar, for example, to add a menu called Add-Ins between the Edit and View menus, I would then add menu items to this new empty menu. This could happen at any time while the product is running, and should not require the menu to be pulled down, so using OnInitCommandsPopup is not really an option.

Regards,

David

Licom Systems Ltd

 

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2004 at 11:20am
I have only used the ActiveX version, but I belive MFC has all of the features of ActiveX and more.  I think you could create all of the menubar items like you normally do, but add every menubar item that your application will ever use.  Now hide the menubar items that you do not want to see when the application starts.  You can then hide/unhide specific menubar controls.  So add them in the order you will eventually want them in.  For example, your menu starts out with File, Edit, Views, Help.  When you create the menu you create File, Edit, Views, Add-Ins, Tools, Window, Help.  After the menu is created, hide the Add-Ins, Tools, and Window controls.  When creating these menu controls you can use the same ideas the Dynamic Popups sample uses, only for the menu control.  In that example you can add and delete button controls from the split button popup without opening the menu.  Can someone familiar with the MFC version confirm this is possible?  Hope this helps
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 February 2004 at 11:19am
GetCommandBars()->GetMenuBar()->GetControls()->Add. ..

Edited by oleg
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.188 seconds.