Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:06
Neil Jigger29-Jul-09 15:06 
AnswerRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 15:45
professionalRichard Andrew x6429-Jul-09 15:45 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 15:48
Neil Jigger29-Jul-09 15:48 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:00
professionalRichard Andrew x6429-Jul-09 16:00 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:08
Neil Jigger29-Jul-09 16:08 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Richard Andrew x6429-Jul-09 16:13
professionalRichard Andrew x6429-Jul-09 16:13 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 16:17
Neil Jigger29-Jul-09 16:17 
GeneralRe: how to link a radio button to a command button? (mfc c++) Pin
Neil Jigger29-Jul-09 18:38
Neil Jigger29-Jul-09 18:38 
<big>thank you very much</big> chard your code solve my problem. I posted this problem because i dont have the sample code on how to connect the radiobutton to the command button. Spider and chandru never gave me the sample code to solve my problem.

here is now my code in c++

void CTuition1Dlg::OnButton1()

{
     // TODO: Add your control notification handler code here
     UpdateData();
     if ( m_button1.GetCheck() == BST_CHECKED )
     {
             m_edit2 = m_edit1 * .9;
          UpdateData(false);
     }
     if ( m_button2.GetCheck() == BST_CHECKED )
     {
          double x;
             x = m_edit1 * .05;
          m_edit2 = m_edit1 + x;
          UpdateData(false);
     }
     if ( m_button3.GetCheck() == BST_CHECKED )
     {
             double x;
          x = m_edit1 * .10;
          m_edit2 = m_edit1 + x;
          UpdateData(false);
     }
     UpdateData(false);
}

if its not for your code I cannot solve it...thank you very much
do you have ym sir chard?
i would like to ym you if i have a problem on programming and i wish that you will still help me.

Once again thank you...

neil
QuestionLPTSTR concatenation Pin
akhanal29-Jul-09 10:20
akhanal29-Jul-09 10:20 
QuestionRe: LPTSTR concatenation Pin
David Crow29-Jul-09 10:50
David Crow29-Jul-09 10:50 
AnswerRe: LPTSTR concatenation Pin
akhanal29-Jul-09 11:18
akhanal29-Jul-09 11:18 
QuestionLIBC.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Pin
stephen.hazel29-Jul-09 10:14
stephen.hazel29-Jul-09 10:14 
QuestionQuestion about Boost::Regex library Pin
msn9229-Jul-09 8:47
msn9229-Jul-09 8:47 
QuestionHow can I show my dialog on the TOP from other window dialog? Pin
THAQCD29-Jul-09 7:38
THAQCD29-Jul-09 7:38 
AnswerRe: How can I show my dialog on the TOP from other window dialog? Pin
Code-o-mat29-Jul-09 9:35
Code-o-mat29-Jul-09 9:35 
QuestionRe: How can I show my dialog on the TOP from other window dialog? Pin
David Crow29-Jul-09 9:45
David Crow29-Jul-09 9:45 
AnswerRe: How can I show my dialog on the TOP from other window dialog? Pin
THAQCD30-Jul-09 8:37
THAQCD30-Jul-09 8:37 
GeneralRe: How can I show my dialog on the TOP from other window dialog? Pin
David Crow1-Aug-09 16:56
David Crow1-Aug-09 16:56 
Question[MISC] - Operators - Meaning of operator & Pin
Thang29-Jul-09 6:59
Thang29-Jul-09 6:59 
AnswerRe: [MISC] - Operators - Meaning of operator & Pin
David Crow29-Jul-09 7:05
David Crow29-Jul-09 7:05 
AnswerRe: [MISC] - Operators - Meaning of operator & Pin
enhzflep29-Jul-09 8:27
enhzflep29-Jul-09 8:27 
GeneralRe: [MISC] - Operators - Meaning of operator & Pin
Maximilien29-Jul-09 9:48
Maximilien29-Jul-09 9:48 
GeneralRe: [MISC] - Operators - Meaning of operator & Pin
enhzflep29-Jul-09 10:00
enhzflep29-Jul-09 10:00 
GeneralRe: [MISC] - Operators - Meaning of operator & Pin
Thang30-Jul-09 6:10
Thang30-Jul-09 6:10 
QuestionSlider control on the status bar (where does WM_HSCROLL go?) Pin
BabakTaati29-Jul-09 5:46
BabakTaati29-Jul-09 5:46 

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.