Chapter 20: List-Based Controls Visual C++ and MFC Fundamentals
When starting the new set, add a new radio button and set its Group property to True
(checked). Add the other radio buttons with the Group property set to False (unchecked)
or without the WS_GROUP style.
Once the radio buttons belong to the same group, if the user clicks one that is empty ?, it
gets filled with a big dot? and all the others become empty ?. This is the default and
most common appearance these controls can assume. Alternatively, you can give them
the appearance of a regular command button with 3-D borders. To do this, set the Push-
Like property to True. When the radio buttons appear as command buttons, the control
that is selected appear pushed or down while the others are up:
If you do not want the default 3-D design of radio buttons, you can make them flat by
setting the Flat property to True.
Practical Learning: Configuring Radio Buttons
- On the dialog box, click the Vanilla radio button and, on the Properties window,
check the Group check box or set its value to True: - In the same way check the Group property of the Cup, None, and One radio buttons
or set this property to True for them - Set the Group box of all the other radio buttons to unchecked or False
- Except for the radio buttons in the Flavor group, check the Left Text property of all
the other radio buttons and set their Left Text value to True