(1) Program or Question Title.
(2)Design
(3) Control Information.
Control Type | Control Name / ID | Member Variable Name | Variable Type | Validation / Extra Info. |
EditBox | IDC_EDIT1 | m_op1 | int | value in[0,100] |
EditBox | IDC_EDIT2 | m_op2 | int | value in[0,100] |
EditBox | IDC_EDIT3 | m_ans | int | value in[0,200] |
Button | IDOK | |||
Button | IDCANCEL |
(4) Coding.
Filename : TempDlg.cpp
…
…
void CTempDlg::OnOK()
{
UpdateData();
m_ans=m_op1+m_op2;
UpdateData(FALSE);
}
…
* If you have done any initialization write with file and function/class structure.
** Always write the function signature in Code.
No comments:
Post a Comment