CheckRadioButton

Syntax

void CheckRadioButton(hDlg,nIDFirstButton,nIDLastButton,nIDCheckButton)

This function checks the radio button specified by the nIDCheckButton parameter and removes the checkmark from all other radio buttons in the group of buttons specified by the nIDFirstButton and nIDLastButton parameters. The CheckRadioButton function sends a BM_SETCHECK message to the radio-button control that has the specified ID in the given dialog box.

Parameter Type/Description  

hDlg HWND Identifies the dialog box.  
nIDFirstButton int Specifies the integer identifier of the first radio button in the group.  
nIDLastButton int Specifies the integer identifier of the last radio button in the group.  
nIDCheckButton int Specifies the integer identifier of the radio button to be checked.  

Return Value

None.