Showing & hiding menu items

This is a discussion on Showing & hiding menu items within the Windows Programming forums, part of the Platform Specific Boards category; Hi, I've got a systray menu template which's got a 'Hide' item. So i've to hide the item 'Hide' when ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    363

    Showing & hiding menu items

    Hi,
    I've got a systray menu template which's got a 'Hide' item. So i've to hide the item 'Hide' when the window is minimized, and show it again when the window is restored. What's the easiest way to hide and show a menu item in a resource template?

    Thanx.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Typically when a command is not available, its menu item is greyed and disabled rather than hidden. This effect can be achieved with the EnableMenuItem function. I don't think a menu item can be "hidden", so if you did want to "hide" a menu item you would remove it with DeleteMenu and re-insert it with InsertMenu.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 03-05-2009, 09:25 AM
  2. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  3. HELP!!!!emergency Problem~expert please help
    By unknowppl in forum C++ Programming
    Replies: 9
    Last Post: 08-21-2008, 06:41 PM
  4. HELP!!!!emergency ~expert please help
    By unknowppl in forum C Programming
    Replies: 1
    Last Post: 08-19-2008, 07:35 AM
  5. Constructive Feed Back (Java Program)
    By xddxogm3 in forum Tech Board
    Replies: 12
    Last Post: 10-10-2004, 03:41 AM

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