CheckRadioButton

  BOOL CheckRadioButton(hwndDlg, idFirstButton, idLastButton, idCheckButton)    
  HWND hwndDlg; /* handle of dialog box */
  int idFirstButton; /* identifier of first radio button in group */
  int idLastButton; /* identifier of last radio button in group */
  int idCheckButton; /* identifier of radio button to select */

The CheckRadioButton function selects (adds a checkmark to) a given radio button in a group and clears (removes a checkmark from) all other radio buttons in the group.

Parameters

hwndDlg

Identifies the dialog box that contains the radio button.

idFirstButton

Specifies the identifier of the first radio button in the group.

idLastButton

Specifies the identifier of the last radio button in the group.

idCheckButton

Specifies the identifier of the radio button to select.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

Comments

The CheckRadioButton function sends a BM_SETCHECK message to the specified radio button control in the given dialog box.

See Also

CheckDlgButton, IsDlgButtonChecked