October 25th, 1999, 09:55 PM
I am having trouble getting the EnableMenuItem function to work properly in either a SDI or MDI application. Basically, I am doing a
GetMenu()->EnableMenuItem( ID_MENU_ITEM, MF_GRAYED )
This works fine in a dialog project, but in a SDI or MDI project, it does not work at all. The functions seem to execute properly, but the menu items do not gray out. Its certainly possible I could just not be placing it in the right place, but I have tried everywhere I can think of. Any help would be appreciated. Please email me at climcla@hotmail.com.
GetMenu()->EnableMenuItem( ID_MENU_ITEM, MF_GRAYED )
This works fine in a dialog project, but in a SDI or MDI project, it does not work at all. The functions seem to execute properly, but the menu items do not gray out. Its certainly possible I could just not be placing it in the right place, but I have tried everywhere I can think of. Any help would be appreciated. Please email me at climcla@hotmail.com.