joe joe
July 29th, 1999, 08:57 AM
What I want to do is have a user input numbers into a dialog box and then have those numbers put into a mathematical computation and then have the answer outputed to a window. With my program I access the dialog box from the view menu option on the title bar so I already have a window open. With this mathematical computation the answer can be 1 value or 1000 depending on the input. So what I want to do is output the answer to the main window I already have open or open a new window for the answer (I don't want the answer put into another dialog box). All data is transfered when the ok button is hit. Here is the code where I think?????? I should be doing this. Right now answer is outputed to a AfxMessageBox, but this is to small.
void CTestDlg::OnOK()
{
CString szEdit;
m_editTest.GetWindowText(szEdit);
AfxMessageBox(szEdit);
// TODO: Add extra validation here
CDialog::OnOK();
}
Thanks
void CTestDlg::OnOK()
{
CString szEdit;
m_editTest.GetWindowText(szEdit);
AfxMessageBox(szEdit);
// TODO: Add extra validation here
CDialog::OnOK();
}
Thanks