Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>enablemenuitem</b> enable, disable or gray a menu item http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
EnableMenuItem       Enable, Disable or Gray a Menu Item

BOOL EnableMenuItem(hMenu, wIDEnableItem, wEnable)
HMENU hMenu;
WORD wIDEnableItem;
WORD wEnable; /* See below */

        wEnable
|----------------------------------------------------------------------|
| MF_BYCOMMAND      wIDChangeItem is menu item to be changed. (default)|
| MF_BYPOSITION     wIDChangeItem is position of item to be changed.   |
|         |'d with one of:                                             |
| MF_DISABLED       Disable item without changing its appearance.      |
| MF_ENABLED        Enable item.                                       |
| MF_GRAYED         Disable and gray item.                             |
+----------------------------------------------------------------------+

Returns:    Previous state if menu item.

See Also: ChangeMenu GetMenu

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson