· The last step is to add the message in m_text to the client screen after the dialog box is
closed with the OK button. Use the ClassWizard to add the onOK() method to Dlg.cpp.
[Find IDOK, and doubleclick BN_CLICKED]. Now add code.
void Dlg::OnOK()
{
// TODO: Add extra validation here
// to make sure m_text is holding the text from the edit box
UpdateData(true);
//to close the dialog box and return the value IDOK.
CDialog::OnOK();
}
No comments:
Post a Comment