Link to home
Start Free TrialLog in
Avatar of Shantanu
Shantanu

asked on

How to hide/unhide a menu item in win32 programming

Is there is any windows API to hide and unhide a menu item at runtime.
Shantanu
Avatar of pjknibbs
pjknibbs

If you have a HMENU handle to the menu, you can call EnableMenuItem() to disable or grey out menu options. As far as I know you can't actually completely hide menu options without removing them from the menu--this can also be done at run time, but is a more complex process than EnableMenuItem().
Avatar of Shantanu

ASKER

piknibbs, in VB we have visible property for menu bar which do the same but I want the paralle l in win32
ASKER CERTIFIED SOLUTION
Avatar of RolandAZ
RolandAZ

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial