Print Page | Close Window

Disable Context Menu for ToolBar

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=2212
Printed Date: 06 October 2024 at 2:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable Context Menu for ToolBar
Posted By: Gosha
Subject: Disable Context Menu for ToolBar
Date 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"?



Replies:
Posted By: SuperMario
Date 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.


Posted By: Gosha
Date Posted: 30 May 2005 at 6:52am
But I can not remove "Customize" string from context menu on toolbars. How I can do it?


Posted By: Oleg
Date 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 - http://forum.codejock.com/forum_posts.asp?TID=1464



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