We assume that there are two RADIO controls: IDC_RADIO_SINGLE and IDC_RADIO_RANGE, our aim is the default selection IDC_RADIO_SINGLE control.
CheckRadioButton (IDC_RADIO_SINGLE, IDC_RADIO_RANGE, IDC_RADIO_SINGLE);
There will be IDC_RADIO_SINGLE Group property set, IDC_RADIO_RANGE not;
CTRL + Double-click IDC_RADIO_SINGLE button to add a member variable m_Radio;
RADIO initialization to add the following code:
m_Radio = 0;
CButton * radio = (CButton *) GetDlgItem (IDC_RADIO_SINGLE);
radio-> SetCheck (1);
The third method is still popular Oh. This is one of the methods commonly used in access control.