Print Page | Close Window

Customize-Dialog

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2182
Printed Date: 06 October 2024 at 2:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Customize-Dialog
Posted By: asmbaec
Subject: Customize-Dialog
Date 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 ?




Replies:
Posted By: asmbaec
Date 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) ?



Posted By: Oleg
Date Posted: 06 May 2005 at 1:25am

same method:

pMenuBar->LoadMenu(pMenu, TRUE);



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net