I have an VC 6.0 app. In design time, I created a menu on the main dialog. The resource ID is IDR_MAINFRAME. Like many windows programs, this menu has three menus. From left to right, the menus are "File", "View", and "Help". On my "View" menu, I want to be able to enable/disable the fourth menu item, during runtime, depending on the user's input.
I've tried processing the ON_UPDATE_COMMAND_UI message for the menu item, but my message handler function is never getting called. If I use the resource ID of the first menu item in the "View" menu, in connection with ON_UPDATE_COMMAND_UI. In this case, my message handler function DOES get called. But then how do I reference the fourth menu item?
Thanks ahead of time.
Start Free Trial