Print Page | Close Window

get access to a menuitem?

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=10487
Printed Date: 01 March 2025 at 6:03am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: get access to a menuitem?
Posted By: freeforvtk
Subject: get access to a menuitem?
Date Posted: 04 May 2008 at 6:29am
Hi, all
 
I want to get access to a menuitem by its ID. Then I can do things like changing its text or setting its state to disabled or checked.
 
Please show me how to do it.
 
Thanks a million.
 
Peace



Replies:
Posted By: Oleg
Date Posted: 05 May 2008 at 2:22am

Hello,

Use Update handlers to change state and set text.  See our samples.
 
to find item use pCommandBars->FindControl method. but its wrong way.


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


Posted By: freeforvtk
Date Posted: 06 May 2008 at 1:06am
Hi, oleg
 
Got it. Thank you.



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