Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Preventing a menu from moving
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Preventing a menu from moving

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


Joined: 22 October 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote random0000 Quote  Post ReplyReply Direct Link To This Post Topic: Preventing a menu from moving
    Posted: 12 November 2003 at 12:58am

Sounds like it should be simple but how do I prevent a menu from being movable?  I still want toolbars to be but not the main menu.  I thought maybe the IsBuiltIn=true would work but it seems to be read only (although the docs say you can Get/Set the value).

Thanks!

Back to Top
random0000 View Drop Down
Newbie
Newbie


Joined: 22 October 2003
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote random0000 Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2003 at 12:13pm
Any ideas?!?
Back to Top
stuebing View Drop Down
Newbie
Newbie


Joined: 29 October 2003
Location: Germany
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote stuebing Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2003 at 7:53am
Hi,

as an aside: is it possible to prevent any toolbar/menubar from moving? Eventually by hooking some message (would be my last resort...)

Andreas
Back to Top
stuebing View Drop Down
Newbie
Newbie


Joined: 29 October 2003
Location: Germany
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote stuebing Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2003 at 9:37am
Hi,

for fixing toolbars now I have a working solution. Derive an own class from CXTPToolBar and catch ON_WM_LBUTTONDOWN and ON_WM_LBUTTONDBLCLK. Use this class as third parameter to CXTPCommandBars::Add to tell XTP to use your own class.

But this does not work for the menu bar ;-(

Any ideas on how to fix and unfix the menu bar?

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