Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Which property is needed to set for radio button in single selection?
Posted
Comments
Maximilien 28-Jan-13 15:48pm    
Huh ? what do you mean by "single selection" ?
by definition, a radio button does not work alone, it must be used with at least one other radio button (http://en.wikipedia.org/wiki/Radio_button) to be able to select one and only one option in a group.
Do you want to use the "round" radio button style as a simple checkbox instead of the "square" shape ?

1 solution

You indicated that this is MFC.

You want to use a CButton (or derived class) and the method to set it to 'on' state is CButton::SetCheck(). To test the current state, use CButton::GetCheck().
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900