?
Solved

how to enable/disable menu items with ON_UPDATE_COMMAND_UI when menu is in a dialogbox ?

Posted on 2004-04-27
3
Medium Priority
?
1,295 Views
Last Modified: 2013-11-20
I have inserted a menu in a dialog box, added some ON_UPDATE_COMMAND_UI in the dialogbox messagemap, wrote the associated CCmdUI handlers, so that some menu items are disabled/enabled depending of the application state.
My CCmdUI handlers are not called, the result is that all menu items stay enabled.
I known that in an standard document/view application, the mainframe calls these CCmdUI handlers during idle time. How to make it work in a dialogbox application ?

JPG
0
Comment
Question by:JP_Goblet
[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
3 Comments
 
LVL 3

Accepted Solution

by:
akalmani earned 500 total points
ID: 10926477
0
 

Author Comment

by:JP_Goblet
ID: 10926539
Thanks to akalmani for directing me to the right Microsoft page.

"This behavior is by design." said Bill on that page. Amen.
0
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 10926685
You could always do an SDI based app using a form based view.  There one has the menu/toolbar support automatically.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…
Suggested Courses

770 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