|
Add in the window conversion function. That is, if you click a button to convert the window, then add it in the button's message response function. As follows:
UpdateData();
::SendMessage(m_hWnd, WM_CLOSE, 0, 0); //Hide the current window
CTest1 dlg;//The class to call the window
To
dlg.m_copy = m_str;//m_str is the current window variable, m_copy is the variable to call the window
dlg.DoModal();//Call the dialog box of CTest1 class
m_str&m_copy is best to be of CString type, and both are int type!!!! |
|