Menu manipulation using Win menu API

I want to get the name of a menu item using the windows menu API. At the moment I can get the menu text/caption, but not its actual name e.g. mnuMenu.
JohnLawrenceAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
TimCotteeConnect With a Mentor Head of Software ServicesCommented:
Hi JohnLawrence,

I don't think you can. The API methods do not relate to the name you give it at design time. You would have to check perhaps the hWnd or something of that sort.

Tim Cottee
Brainbench MVP for Visual Basic
http://www.brainbench.com
0
 
gottaseeCommented:
Why do you want to do this? May be we could find a way to do it another way
0
 
ArkCommented:
mnuMenu names are VB only beasts. This is nothing more then a key for VB menu items collection.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.