[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

HMENU

Posted on 1998-12-03
2
Medium Priority
?
332 Views
Last Modified: 2013-11-20
Using EnableMenuItem(
     hmenu
     uIDEnableItem
     UEnable);
in order to gray a menu item I was using MF_GRAYED and the ID of the menu item, but am unsure of how to get a handle to my menu (HMENU)....
0
Comment
Question by:MJohn
[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
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1325721
If you're using MFC, then you shouldn't use EnableMenuItem. Instead, you should use ON_UPDATE_COMMAND_UI() macros in your message map. This will tell MFC that you want it to call your function to ask you whether the menu item should be enabled or not.

0
 

Author Comment

by:MJohn
ID: 1325722
How do I do this?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

650 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