Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - unwanted menus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

unwanted menus

 Post Reply Post Reply
Author
Message Reverse Sort Order
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 Topic: unwanted menus
    Posted: 03 June 2004 at 12:44am

you can try

pCommandBars->GetMenuBar()->LoadMenu

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Alistair View Drop Down
Newbie
Newbie
Avatar

Joined: 14 May 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alistair Quote  Post ReplyReply Direct Link To This Post 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.
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: 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
Back to Top
Alistair View Drop Down
Newbie
Newbie
Avatar

Joined: 14 May 2004
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alistair Quote  Post ReplyReply Direct Link To This Post 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.

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