Click here to Skip to main content
16,006,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:28
Tomasz Sowinski27-Mar-02 10:28 
GeneralRe: Win API equivalent of cin? Pin
Ravi Bhavnani27-Mar-02 10:36
professionalRavi Bhavnani27-Mar-02 10:36 
GeneralRe: Win API equivalent of cin? Pin
Tomasz Sowinski27-Mar-02 10:32
Tomasz Sowinski27-Mar-02 10:32 
AnswerRe: Win API equivalent of cin? Pin
28-Mar-02 6:27
suss28-Mar-02 6:27 
GeneralUninstall DLL Pin
27-Mar-02 9:45
suss27-Mar-02 9:45 
GeneralRe: Uninstall DLL Pin
soptest27-Mar-02 9:47
soptest27-Mar-02 9:47 
GeneralRe: Uninstall DLL Pin
27-Mar-02 9:54
suss27-Mar-02 9:54 
Generalsequential member variable name Pin
lucy27-Mar-02 9:27
lucy27-Mar-02 9:27 
Could you please tell me if there is any easy way to do this?

the problem is: I have a dialog, which have 14 radio buttons and 14 edit boxes. The 14 radio buttons are grouped and have an int m_nRadio assigned to it. Each radio button has an edit box to its right, and each edit box has a CString variable associated with them, they are named as m_edit0, m_edit1, m_edit2, ..... , m_edit13.

now, when user press a button on the dialog, I want to get the contents of the edit box next to the selected radio button, that is:
if ( m_nRadio == 0 ), I want contents of m_edit0;
if ( m_nRadio == 1 ), I want contents of m_edit1;

What I can think of now is using a 14 cases switch statement, which is clumsy, and stupid. Dead | X| Is there any good way to do this?

Thank you very much for any input!Rose | [Rose] Rose | [Rose]
GeneralRe: sequential member variable name Pin
Tim Smith27-Mar-02 9:45
Tim Smith27-Mar-02 9:45 
GeneralRe: sequential member variable name Pin
lucy27-Mar-02 10:05
lucy27-Mar-02 10:05 
GeneralRe: sequential member variable name Pin
Tomasz Sowinski27-Mar-02 10:34
Tomasz Sowinski27-Mar-02 10:34 
GeneralRe: sequential member variable name Pin
lucy27-Mar-02 11:29
lucy27-Mar-02 11:29 
GeneralRe: sequential member variable name Pin
Tim Smith27-Mar-02 11:52
Tim Smith27-Mar-02 11:52 
GeneralCTabCtrl Pin
Rickard Andersson2027-Mar-02 9:26
Rickard Andersson2027-Mar-02 9:26 
GeneralRe: CTabCtrl Pin
Michael P Butler27-Mar-02 9:33
Michael P Butler27-Mar-02 9:33 
Generalintegers Pin
27-Mar-02 7:35
suss27-Mar-02 7:35 
GeneralRe: integers Pin
Jon Sagara27-Mar-02 8:19
Jon Sagara27-Mar-02 8:19 
GeneralRe: integers Pin
Tim Deveaux27-Mar-02 8:24
Tim Deveaux27-Mar-02 8:24 
QuestionPass class member function as paramter? Pin
Todd Smith27-Mar-02 7:22
Todd Smith27-Mar-02 7:22 
AnswerRe: Pass class member function as paramter? Pin
Tim Deveaux27-Mar-02 8:27
Tim Deveaux27-Mar-02 8:27 
GeneralRe: Pass class member function as paramter? Pin
Todd Smith28-Mar-02 8:02
Todd Smith28-Mar-02 8:02 
AnswerRe: Pass class member function as paramter? Pin
soptest27-Mar-02 8:51
soptest27-Mar-02 8:51 
AnswerRe: Pass class member function as paramter? Pin
Jim Crafton27-Mar-02 10:50
Jim Crafton27-Mar-02 10:50 
GeneralHistory list in browser window Pin
Aaron Schaefer27-Mar-02 6:24
Aaron Schaefer27-Mar-02 6:24 
Generalsending keystrokes to window Pin
vins27-Mar-02 5:14
vins27-Mar-02 5:14 

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.