Print Page | Close Window

How to remove menu item

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=17818
Printed Date: 26 February 2025 at 8:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to remove menu item
Posted By: Heath
Subject: How to remove menu item
Date Posted: 31 January 2011 at 6:17am
Hi,
 
Using command bars we have a menu item in the MainFrame which we want to remove (not hide) on startup.  I found the HideCommand() function, but I can't find a Remove equivalent. Confused
 
If there isn't an easy method using CJ (would be nice if there was), can someone recommend a quick way of doing it.
 
Thanks,
Heath.



Replies:
Posted By: Oleg
Date Posted: 31 January 2011 at 7:58am
Hi,

pMenuBar->GetControls()->Remove(nIndex);




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


Posted By: Heath
Date Posted: 31 January 2011 at 10:57am
Thanks Oleg.
 
That sent me in the right direction.
 
Regards,
Heath.



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