Jeff
June 10th, 1999, 12:03 PM
Hi,
I have a source code (MFC/C++) of an SDI application using the architect. Document/View. I want to
convert this application to be MDI (Multiple document).,Is there any way to do this ?
I modified the InitInstance of the applicatio, but this does not fix it.
CTestApp::InitInstance()
{
....
....
....
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTestDoc),
RUNTIME_CLASS(CMainFrame), // main MDI frame window
RUNTIME_CLASS(CTestView));
AddDocTemplate(pDocTemplate);
/* CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTestDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CTestView));
AddDocTemplate(pDocTemplate);*/
...
...
...
}
Thank you
Jeff
nf10@hotmail.com
I have a source code (MFC/C++) of an SDI application using the architect. Document/View. I want to
convert this application to be MDI (Multiple document).,Is there any way to do this ?
I modified the InitInstance of the applicatio, but this does not fix it.
CTestApp::InitInstance()
{
....
....
....
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTestDoc),
RUNTIME_CLASS(CMainFrame), // main MDI frame window
RUNTIME_CLASS(CTestView));
AddDocTemplate(pDocTemplate);
/* CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINFRAME,
RUNTIME_CLASS(CTestDoc),
RUNTIME_CLASS(CMainFrame), // main SDI frame window
RUNTIME_CLASS(CTestView));
AddDocTemplate(pDocTemplate);*/
...
...
...
}
Thank you
Jeff
nf10@hotmail.com