Solved

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

Posted on 2004-04-27
3
1,278 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
3 Comments
 
LVL 3

Accepted Solution

by:
akalmani earned 125 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

Suggested Solutions

Title # Comments Views Activity
java ^ examples 8 69
My project did see openJDK that I installed. What could be the problem 7 160
noX challenge 17 134
Excel file not created as expected 7 90
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

685 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