Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - get access to a menuitem?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

get access to a menuitem?

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


Joined: 01 April 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote freeforvtk Quote  Post ReplyReply Direct Link To This Post Topic: get access to a menuitem?
    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
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: 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
Back to Top
freeforvtk View Drop Down
Newbie
Newbie


Joined: 01 April 2008
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote freeforvtk Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2008 at 1:06am
Hi, oleg
 
Got it. Thank you.
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.063 seconds.