Checked Menu Items...
Hi, it''s been a while since I posted here...(which is usually good ) but not I have a question that is basically windows related... I have a windowed program that I would like to add a menu that has checked states to. I can make the menus checked when it starts up, but I haven''t found a way to check and un-check them without using some sort of MFC class. Does anyone know how to do this?
Basically I want to have a Menu like this:
Difficulty
----------
Easy
V Medium
Hard
and be able to, say when the user clicks hard, uncheck medium, and easy and check hard.
-=Lohrno
If I remember correctly: if you are creating the menu in the VC++ editor I think you can form checked controls into a group. That means that only one can be clicked, the results you''re after would then be automatic. I *think* you can do that with menu items, but I''ve only done it with dialogs so I can''t be sure.
pan narrans
Study + Hard Work + Loud Profanity = Good Code
pan narrans
Study + Hard Work + Loud Profanity = Good Code
Minister of Propaganda : leighstringer.com : Nobody likes the man who brings bad news - Sophocles (496 BC - 406 BC), Antigone
Look up CheckMenuItem. For what you're doing, you might want to use radio items - look up CheckMenuRadioItem.
[edited by - SilentCoder on October 8, 2002 9:12:50 PM]
[edited by - SilentCoder on October 8, 2002 9:12:50 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement