Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Customize-Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Customize-Dialog

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


Joined: 04 May 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote asmbaec Quote  Post ReplyReply Direct Link To This Post Topic: Customize-Dialog
    Posted: 04 May 2005 at 9:26am

Hi,

I created in my MDIFrameWnd a menubar and set it to the CommandBars. A lillte bit later I load a new MenuBar by LoadMenu. When I now open the Customizedialog I will see the old menu. Is this a bug or are there any functions to update the commandbar ?

Back to Top
asmbaec View Drop Down
Newbie
Newbie


Joined: 04 May 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote asmbaec Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2005 at 9:55am
I found the mistake. I used

InsertBuiltInMenus(IDR_MAINFRAME)

This method loads the menu from resource. But how can I set a new menubar which is not from resource, because I used LoadMenu (CMenu* pMenu) ?

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: 06 May 2005 at 1:25am

same method:

pMenuBar->LoadMenu(pMenu, TRUE);

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.141 seconds.