Print Page | Close Window

System menu items are missing

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=20656
Printed Date: 24 November 2024 at 6:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: System menu items are missing
Posted By: Beth
Subject: System menu items are missing
Date Posted: 01 March 2013 at 2:17pm

 

Hi:
   I am using the sample ribbon codes to test out system menu to see how to add and remove menu items from the system button. I commented out the codes that added menu items into the system menu. After compiled and run, the items were still there. Then I launched the "Customize the Ribbon" page and clicked on the "Reset" button. The menus on the system button are gone as expected. Then I uncommented the codes that were commented before and compiled and use the "Reset" button again on the "Customize the Ribbon Page", but the menus are not comming back. No matter what menu I add or delete, the system button menu items are reminded missing. How do I get the system menu back? Please help.
Thanks,Beth 



Replies:
Posted By: SuperMario
Date Posted: 04 March 2013 at 4:44pm
Try commenting out this line:

CommandBars.LoadCommandBars "Codejock Software ActiveX Demos", App.Title, "Layout"


Posted By: Beth
Date Posted: 04 March 2013 at 5:27pm

But I cannot find that line of code you mentioned in the project. We are using the dll version of the toolkits in MFC environment. Are there other places that may contribute the problem?



Posted By: SuperMario
Date Posted: 12 March 2013 at 4:33pm
Was missing lines in backstage code:

pButton->SetCommandBar(pView);

pView->InternalRelease();



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