This macro sets the state of the specified menu item to the enable flag.

#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HWND      hwndMenu;  /*  Menu window handle. */
USHORT    usId;      /*  Item identifier. */
BOOL      fEnable;   /*  Enable flag. */
BOOL      rc;        /*  Success indicator. */

rc = WinEnableMenuItem(hwndMenu, usId, fEnable);


[Back] [Next]