BOOL CMyWinApp::InitInstance()
{ ... // Parse command line for standard shell commands, DDE, file open. CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); // Do not display a new MDI child window during startup. cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing; // Dispatch commands specified on the command line. if (!ProcessShellCommand(cmdInfo)) return FALSE; ... }; 为了去掉开始的子窗口,可在应用程序文件
分析命令行的语句 CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); 后加入: cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing; |
|
来自: liyanweicc > 《MFC》