One more tip: You might find it necessary to open the .rc file in the text editor and rearrange the order of the controls. It works best if the radio buttons are in consecutive order in the .rc file with the first one being the one with the group property set.
A trick I use is to use Find in Files to search for the name of a radio button control. Then double click on the search results to open the .rc file in a text editor. Then just cut and past the entire lines until the radio buttons are one right after another. See example below.
Main Topics
Browse All Topics





by: AndyAinscowPosted on 2009-10-29 at 10:36:20ID: 25696121
Properties of the controls.
Group should be set to on for the first radio button, tab should be on.
The groupbox should also have both set on.
Second radio button - both off.
There is no ownership as such (unlike what you seem to be used to) but this can be very useful, you are less restricted when you design the form, as you notice radio buttons do not need to be inside a group box (or even have a group box).
Now select the first radio button on the form, right click with mouse and choose add member variable. This will (should) generate code in the .cpp file of the dialog - there you can set a value to determine which, if any, radio is the default one - again behaviour than can be useful.