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

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
JP_GobletAsked:
Who is Participating?
 
JP_GobletAuthor Commented:
Thanks to akalmani for directing me to the right Microsoft page.

"This behavior is by design." said Bill on that page. Amen.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
You could always do an SDI based app using a form based view.  There one has the menu/toolbar support automatically.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.