|
-
March 29th, 1999, 11:21 AM
#2
need help desparate
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|