CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_RESTTTYPE,
RUNTIME_CLASS(CResttDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CResttView));
AddDocTemplate(pDocTemplate); pDocTemplate = new CMultiDocTemplate(
IDR_RESTTTYPE1,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CResttView));
AddDocTemplate(pDocTemplate);
pDocTemplate = new CMultiDocTemplate(
IDR_RESTTTYPE,
RUNTIME_CLASS(CResttDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CResttView));
AddDocTemplate(pDocTemplate); pDocTemplate = new CMultiDocTemplate(
IDR_RESTTTYPE1,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CResttView));
AddDocTemplate(pDocTemplate);
ParseCommandLine(cmdInfo);
下面增加一行:cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
看能不能符合你的要求。