This function returns the state (enabled/disabled) of the specified item in the dialog template within a dialog box.

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

HWND      hwndDlg;  /*  Dialog window handle. */
USHORT    usId;     /*  Identity of the specified item. */
BOOL      rc;       /*  Enabled-state indicator. */

rc = WinIsControlEnabled(hwndDlg, usId);


[Back] [Next]