Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Winsock question [modified] Pin
led mike29-Jun-06 5:38
led mike29-Jun-06 5:38 
AnswerRe: Winsock question Pin
Jeremy Falcon28-Jun-06 13:04
professionalJeremy Falcon28-Jun-06 13:04 
GeneralRe: Winsock question Pin
bcstone28-Jun-06 13:26
bcstone28-Jun-06 13:26 
GeneralRe: Winsock question Pin
Jeremy Falcon28-Jun-06 13:27
professionalJeremy Falcon28-Jun-06 13:27 
AnswerRe: Winsock question Pin
Jörgen Sigvardsson28-Jun-06 14:10
Jörgen Sigvardsson28-Jun-06 14:10 
QuestionCListCtrl Pin
ftsOne28-Jun-06 8:53
ftsOne28-Jun-06 8:53 
Questionabout radio buttons Pin
Desmo1628-Jun-06 7:15
Desmo1628-Jun-06 7:15 
AnswerRe: about radio buttons Pin
Zac Howland28-Jun-06 7:33
Zac Howland28-Jun-06 7: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 7:38
David Crow28-Jun-06 7:38 
GeneralRe: about radio buttons Pin
Blake Miller28-Jun-06 12:22
Blake Miller28-Jun-06 12:22 
QuestionEncryption Pin
we3Guy28-Jun-06 5:42
we3Guy28-Jun-06 5:42 
AnswerRe: Encryption Pin
Sarath C28-Jun-06 5:49
Sarath C28-Jun-06 5:49 
GeneralRe: Encryption [modified] Pin
we3Guy28-Jun-06 5:59
we3Guy28-Jun-06 5:59 
GeneralRe: Encryption Pin
Zac Howland28-Jun-06 7:27
Zac Howland28-Jun-06 7:27 
GeneralRe: Encryption [modified] Pin
Chris Losinger28-Jun-06 6:00
professionalChris Losinger28-Jun-06 6:00 
AnswerRe: Encryption Pin
Sarath C28-Jun-06 6:49
Sarath C28-Jun-06 6:49 
QuestionCRichEditCtrl with ownder draw scroll bar Pin
YaronNir28-Jun-06 5:41
YaronNir28-Jun-06 5:41 
Questionproblem with combobox Pin
Desmo1628-Jun-06 5:05
Desmo1628-Jun-06 5:05 
AnswerRe: problem with combobox Pin
Sarath C28-Jun-06 5:15
Sarath C28-Jun-06 5:15 
GeneralRe: problem with combobox Pin
Desmo1628-Jun-06 5:33
Desmo1628-Jun-06 5:33 
AnswerRe: problem with combobox Pin
Mark F.28-Jun-06 5:45
Mark F.28-Jun-06 5:45 
GeneralRe: problem with combobox Pin
Desmo1628-Jun-06 6:47
Desmo1628-Jun-06 6:47 
QuestionGetting Text to display in a RichEditView [modified] Pin
cwbenson28-Jun-06 5:01
cwbenson28-Jun-06 5:01 
AnswerRe: Getting Text to display in a RichEditView Pin
Sarath C28-Jun-06 5:14
Sarath C28-Jun-06 5:14 
AnswerRe: Getting Text to display in a RichEditView Pin
David Crow28-Jun-06 5:53
David Crow28-Jun-06 5: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.