The CheckRadioButton function adds a check mark to (checks) a specified radio button in a group and removes a check mark from (clears) all other radio buttons in the group.
BOOL CheckRadioButton(
HWND hDlg, // handle to dialog box
int nIDFirstButton, // identifier of first radio button in group
int nIDLastButton, // identifier of last radio button in group
int nIDCheckButton // identifier of radio button to select
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The CheckRadioButton function sends a BM_SETCHECK message to each of the radio buttons in the indicated group.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Buttons Overview, Button Functions, BM_SETCHECK, CheckDlgButton, IsDlgButtonChecked