Checked Menu Items...

Started by
3 comments, last by Lohrno 21 years, 6 months ago
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
Advertisement
Maybe I should post in another forum?

-=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
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]
quote:Original post by SilentCoder
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]


Cool! I see it''s working now! Thanks

-=Lohrno

This topic is closed to new replies.

Advertisement