Print Page | Close Window

unwanted menus

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=779
Printed Date: 24 December 2024 at 9:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: unwanted menus
Posted By: Alistair
Subject: unwanted menus
Date Posted: 24 May 2004 at 11:04am
My MDI application has a couple of wizards that use views onto documents.

When I open those views in normal MDI windows, their menubars replace the existing menubar.

If I open a wizard, the associated view's menubar appears (grayed) *above* the existing menubar.

This only happens when I build with XTreme Toolkit Pro. If I build without XTPro, the existing menu is replaced by the associated view's menu whether the view is in an MDI window or inside a wizard.

Any suggestions? I don't mind if the menu doesn't get replaced at all when running a wizard since the wizard is modal and the menu can't be accessed anyway.

--- Al.




Replies:
Posted By: Oleg
Date Posted: 01 June 2004 at 3:47am
I think it is something in your code... Do you have SetMenu calls?

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


Posted By: Alistair
Date Posted: 01 June 2004 at 4:57am
> I think it is something in your code...
Doesn't suprise me, it usually is!

> Do you have SetMenu calls?
Yes I do, and only in the places where I get new, unwanted menus. I've conditionally compiled them out when building with XTPro and the unwanted menus are gone. However, the main menu obviously does not change. What should I be doing instead of SetMenu()?

--- Al.


Posted By: Oleg
Date Posted: 03 June 2004 at 12:44am

you can try

pCommandBars->GetMenuBar()->LoadMenu



-------------
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