Can't disable level 2 menu item
-
I am unable to disable a second level menu item. I have a Tools popup menu on my menubar that contains two items and a popup item that also contains two menu items. It looks like this: Tools |- Toggle Enable/Disable |- Item |- SubMenu -> |---- SubItem1 |---- SubItem2 I used ClassWizard to add the usual ON_UPDATE_COMMAND_UI functions. In the appropriate function, I can use "pCmdUI->Enable(FALSE)" to disable "Item", but I can't disable "SubItem1" and "SubItem2". Matter of fact, the functions that ClassWizard generated for my two sub menu items are never even called. I have breakpoints on both these function and they are never even hit. This bug occurs on both my emulator and on my Compaq iPaq (arm processor). I created the project with AppWizard and am using a "Basic MenuBar". Any ideas? Can anyone else disable a submenu item?
-
I am unable to disable a second level menu item. I have a Tools popup menu on my menubar that contains two items and a popup item that also contains two menu items. It looks like this: Tools |- Toggle Enable/Disable |- Item |- SubMenu -> |---- SubItem1 |---- SubItem2 I used ClassWizard to add the usual ON_UPDATE_COMMAND_UI functions. In the appropriate function, I can use "pCmdUI->Enable(FALSE)" to disable "Item", but I can't disable "SubItem1" and "SubItem2". Matter of fact, the functions that ClassWizard generated for my two sub menu items are never even called. I have breakpoints on both these function and they are never even hit. This bug occurs on both my emulator and on my Compaq iPaq (arm processor). I created the project with AppWizard and am using a "Basic MenuBar". Any ideas? Can anyone else disable a submenu item?