I have a class CMainFrame - how MFC makes my menu automatically I am a beginner so I am not totally sure. I have spent the weekend at

Barnes & Noble looking at (very little examples in all these C books) of how

you can add:


pseudo:

class CMainFrame

private:

CMenu pMenu;

etc..

Then when the app makes an instance in MainFrame.cpp

you add pMenu.LoadMenu(IDR_MAINFRAME);

SetMenu(&pMenu);


At that point I added code to initially set a menu item to GRAY

because I want to control the user into logging on

This returns with the right number which is 2::::

pMenu.CheckMenuItems(ID_LOGON,MF_BYCOMMAND|MF_DISABLE);

But when you check the menu in debug mode or on regualr

the menu item is not grayed out.


I tried using spy like my dad said, but it does not give me menu handle or I cannot see it


Thanks for all your help.