This function returns the checked state of the button control specified.
#define INCL_WINWINDOWMGR #define INCL_WINBUTTONS #include <OS2.H> #define IDM_BUTTONA 900 HWND hwndDlg; USHORT ChkState; ChkState = WinQueryButtonCheckstate(hwndDlg, IDM_BUTTONA); switch (ChkState) { case 0: /* Unchecked */ break; case 1: /* Checked */ break; case 2: /* Indeterminate. */ break; }