Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Disable Context Menu for ToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable Context Menu for ToolBar

 Post Reply Post Reply
Author
Message
Gosha View Drop Down
Newbie
Newbie
Avatar

Joined: 25 April 2005
Location: Belarus
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gosha Quote  Post ReplyReply Direct Link To This Post Topic: Disable Context Menu for ToolBar
    Posted: 12 May 2005 at 3:05am
Please, how I can disable all context menu for my toolbar or only one it's submenu "Custumize"?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2005 at 7:58am
Take a look at CXTPToolBar::SetContextMenuPresent(BOOL bPresent).  This will allow you to remove the name of the toolbar from the contect menu that popups up when you right-click on a toolbar.
Back to Top
Gosha View Drop Down
Newbie
Newbie
Avatar

Joined: 25 April 2005
Location: Belarus
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gosha Quote  Post ReplyReply Direct Link To This Post Posted: 30 May 2005 at 6:52am
But I can not remove "Customize" string from context menu on toolbars. How I can do it?
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: 30 May 2005 at 11:17am

If you don't need customization just remove

ON_COMMAND(XTP_ID_CUSTOMIZE, OnCustomize)

from your message map.

 

also see http://forum.codejock.com/forum_posts.asp?TID=1464

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.203 seconds.