Board index » Visual Studio » How to reuse the dialog?
|
Gandhawk
|
How to reuse the dialog?
Visual Studio232
Hi, there, I am using a dialog based class to get all needed information, then process them in the app class. So I put my bulk code in the CApp class as in following: BOOL CTransApp::InitInstance() { ... if (nResponse == IDOK) Process_File((LPCTSTR) dlg.m_str, ......); else if (nResponse == IDCANCEL) ..... return FALSE; } It works well in this way. However, each time when I porcessed those files, the dialog disappears. How can I reuse the dialog, and let the user enter information again? Can I implement the same function without moving my bulk code to the dialog class? Thanks. Gary - |
