Click here to Skip to main content
15,170,331 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Winsock question [modified] Pin
led mike29-Jun-06 6:38
Memberled mike29-Jun-06 6:38 
AnswerRe: Winsock question Pin
Jeremy Falcon28-Jun-06 14:04
professionalJeremy Falcon28-Jun-06 14:04 
GeneralRe: Winsock question Pin
bcstone28-Jun-06 14:26
Memberbcstone28-Jun-06 14:26 
GeneralRe: Winsock question Pin
Jeremy Falcon28-Jun-06 14:27
professionalJeremy Falcon28-Jun-06 14:27 
AnswerRe: Winsock question Pin
Jörgen Sigvardsson28-Jun-06 15:10
MemberJörgen Sigvardsson28-Jun-06 15:10 
QuestionCListCtrl Pin
ftsOne28-Jun-06 9:53
MemberftsOne28-Jun-06 9:53 
Questionabout radio buttons Pin
Desmo1628-Jun-06 8:15
MemberDesmo1628-Jun-06 8:15 
AnswerRe: about radio buttons Pin
Zac Howland28-Jun-06 8:33
MemberZac Howland28-Jun-06 8:33 
If you are using MFC, you group them (setting the group property on them -- read the MSDN documentation for more details), and then assign a variable to the first one in the group. If you assigned an integer value to it, you would set the integer value to the value of the index in the group. For example, if you have:

IDC_MYRADIO_0
IDC_MYRADIO_1

as the resource names for your radio buttons (make sure they are in sequential order in your resource.h file), and you assing m_iMyRadioValue to represent the data for the radio buttons, you would set m_iMyRadioValue to the corresponding button you want selected:

// to set it to the first button:<br />
m_iMyRadioValue = 0;<br />
UpdateData(FALSE);<br />
<br />
// to set it to the second button:<br />
m_iMyRadioValue = 1;<br />
UpdateData(FALSE);


If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
AnswerRe: about radio buttons Pin
David Crow28-Jun-06 8:38
MemberDavid Crow28-Jun-06 8:38 
GeneralRe: about radio buttons Pin
Blake Miller28-Jun-06 13:22
MemberBlake Miller28-Jun-06 13:22 
QuestionEncryption Pin
we3Guy28-Jun-06 6:42
Memberwe3Guy28-Jun-06 6:42 
AnswerRe: Encryption Pin
Sarath C28-Jun-06 6:49
MemberSarath C28-Jun-06 6:49 
GeneralRe: Encryption [modified] Pin
we3Guy28-Jun-06 6:59
Memberwe3Guy28-Jun-06 6:59 
GeneralRe: Encryption Pin
Zac Howland28-Jun-06 8:27
MemberZac Howland28-Jun-06 8:27 
GeneralRe: Encryption [modified] Pin
Chris Losinger28-Jun-06 7:00
professionalChris Losinger28-Jun-06 7:00 
AnswerRe: Encryption Pin
Sarath C28-Jun-06 7:49
MemberSarath C28-Jun-06 7:49 
QuestionCRichEditCtrl with ownder draw scroll bar Pin
YaronNir28-Jun-06 6:41
MemberYaronNir28-Jun-06 6:41 
Questionproblem with combobox Pin
Desmo1628-Jun-06 6:05
MemberDesmo1628-Jun-06 6:05 
AnswerRe: problem with combobox Pin
Sarath C28-Jun-06 6:15
MemberSarath C28-Jun-06 6:15 
GeneralRe: problem with combobox Pin
Desmo1628-Jun-06 6:33
MemberDesmo1628-Jun-06 6:33 
AnswerRe: problem with combobox Pin
Mark F.28-Jun-06 6:45
MemberMark F.28-Jun-06 6:45 
GeneralRe: problem with combobox Pin
Desmo1628-Jun-06 7:47
MemberDesmo1628-Jun-06 7:47 
QuestionGetting Text to display in a RichEditView [modified] Pin
cwbenson28-Jun-06 6:01
Membercwbenson28-Jun-06 6:01 
AnswerRe: Getting Text to display in a RichEditView Pin
Sarath C28-Jun-06 6:14
MemberSarath C28-Jun-06 6:14 
AnswerRe: Getting Text to display in a RichEditView Pin
David Crow28-Jun-06 6:53
MemberDavid Crow28-Jun-06 6:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.