Click here to Skip to main content
12,503,080 members (62,579 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: MFC
Which property is needed to set for radio button in single selection?
Posted 28-Jan-13 0:46am
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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().
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160919.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100