Menu change state

This is a discussion on Menu change state within the Windows Programming forums, part of the Platform Specific Boards category; Hello I ve tried to look up my problem but unfortunately no result found so far. I am aiming for ...

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    162

    Menu change state

    Hello

    I ve tried to look up my problem but unfortunately no result found so far.

    I am aiming for changing the menu button state from checked to unchecked as I click it...

    I tried already

    DWORD CheckMenuItem( HMENU hmenu,
    UINT uIDCheckItem,
    UINT uCheck
    );


    LRESULT SetButtonState(const long &);

    Instead of the red text should be other arguments these are those which MS Visual studio offers me...

    Do you have an idea what else shall I use or in which different way to use these?

    Thank you for patience

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,583
    CheckMenuItem should do the trick I think. uCheck is the argument where to specify if it should be checked or unchecked.
    Been a while since I messed around with menus.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    162
    thx works

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. type casting?
    By greatonesv in forum C Programming
    Replies: 12
    Last Post: 10-22-2008, 08:21 PM
  2. help with calculating change from a dollar
    By z.tron in forum C++ Programming
    Replies: 3
    Last Post: 09-13-2002, 03:58 PM
  3. Replies: 2
    Last Post: 09-04-2001, 02:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21