Solved

Menu manipulation using Win menu API

Posted on 2004-04-07
6
219 Views
Last Modified: 2010-05-02
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.
0
Comment
Question by:JohnLawrence
6 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 125 total points
ID: 10773260
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
 

Expert Comment

by:gottasee
ID: 10775864
Why do you want to do this? May be we could find a way to do it another way
0
 
LVL 27

Expert Comment

by:Ark
ID: 10780301
mnuMenu names are VB only beasts. This is nothing more then a key for VB menu items collection.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
A macro to Count the number of rows across all worksheets 3 84
Updates not working for MS Windows 7 12 154
TT Auto Dashboard 13 85
Child Form in front 4 39
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now