Radio buttons are typically used in groups, and each radio button represents one of a set of mutually exclusive options. When the group property is set for the first radio button, several subsequent radio buttons belong to the same group as the button until the next control ( in tab order ) with the group property is encountered.
1 . Set the group property of Radioa, and associate the INT type variable M_RADIOA.
At this point 6 radio buttons belong to the same group. Click Radioa to Radiof,m_radioa to change the value from 0 to 5.
2 . Set the group property of Radioe, and associate the INT type variable M_RADIOE.
At this time Radioa to radiod same group, Radioe and Radiof same group. Click Radioa to Radiod,m_radioa to change the value from 0 to 3. Click Radioe to Radiof,m_radioe to change the value from 0 to 1.
remark:
(1) for a group of radio buttons, you need to set the group property of the first radio button for the set, before you can see the ID of the radio button in the Class Wizard and associate the variable with it.
(2) The value of the associated variable can be set at initialization select the Default Check button. -1 indicates that no buttons are selected.
(3) resource View, Format->tab key order, click the control to change the tab order.
MFC Controls-radio buttons (Radio button)