?
Solved

Menu manipulation using Win menu API

Posted on 2004-04-07
6
Medium Priority
?
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 500 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 28

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 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