This macro returns the checked state of the button control specified.

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

HWND      hwndDlg;     /*  Dialog window handle. */
USHORT    usId;        /*  Button control identity. */
USHORT    usRetChkst;  /*  Returns the checkstate of the specified button control. */

usRetChkst = WinQueryButtonCheckstate(hwndDlg,
               usId);


[Back] [Next]