Solved

Menu manipulation using Win menu API

Posted on 2004-04-07
6
222 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel object stays open 19 76
Add and format columns in vb6 7 59
clicking a shape in a frame array vb6 3 45
how to Classify of email (pdf attachments) 7 36
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

825 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