在这一句 // Dispatch commands specified on the command line if (!ProcessShellCommand(cmdInfo)) return FALSE;前面加上 // DON'T display a new MDI child window during startup!!! if( cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew ) cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;前面加上
// DON'T display a new MDI child window during startup!!!
if( cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew )
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;