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,271 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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 tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now