Roberto Tedesco
May 4th, 1999, 02:35 PM
I am trying to enable a menu item in the main menu bar.
I have a created a handler for the menu item in CMainFrame and have tried to call pMenu->EnableMenuItem(itemID, MF_BYCOMMAND|MF_GRAYED); and this doesn't seem to work.
However, calling pMenu->CheckMenuItem(itemID, MF_BYCOMMAND, MF_CHECKED) will put a checkmark next to the menu item.
I know this is a simple problem, please enlighten me with a possible solution?
Thanks,
Roberto
I have a created a handler for the menu item in CMainFrame and have tried to call pMenu->EnableMenuItem(itemID, MF_BYCOMMAND|MF_GRAYED); and this doesn't seem to work.
However, calling pMenu->CheckMenuItem(itemID, MF_BYCOMMAND, MF_CHECKED) will put a checkmark next to the menu item.
I know this is a simple problem, please enlighten me with a possible solution?
Thanks,
Roberto