This function returns the state (enabled/disabled) of the specified menu item.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HWND hwndMenu; /* Menu window handle. */ USHORT usId; /* Identity of the menu item. */ BOOL rc; /* Enabled-state indicator. */ rc = WinIsMenuItemEnabled(hwndMenu, usId);