在App::InitInstance()中加入红色代码即可。
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
只是在源代码的基础上增加了
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;