Disable Menu Item
C / C++ / MFC
4
Posts
2
Posters
0
Views
1
Watching
-
I added an item on my menu. I also added handlers to it. but when i run my project, the menu i added is disabled. Does anybody know how to solve this problem. it would help a lot.
I think the item menu need to function for enable you must Add event handler for item menu
-
I think the item menu need to function for enable you must Add event handler for item menu
-
i actually added an event handler. when the event handler is only ON_COMMAND for that dialog the menu is enabled but when i add the ON_UPDATE_COMMAND_UI event handler, the menu is disabled. and i have another problem, it doesn't show the dialog.
Hi For show Dialog you can ShowWindow(1) or WS_VISIBLE and for diable menu do you use MF_DISABLED?or ModifyMenu Do you use InsertMenu?