?
Solved

Menu manipulation using Win menu API

Posted on 2004-04-07
6
Medium Priority
?
240 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Suggested Courses

649 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