创建一个多文档程序之后,如何在初始运行(没有进行任何操作)不显示任何空白文档?谢谢

解决方案 »

  1.   

    就是创建一个MFC空白的多文档程序之后,运行,会显示一个空白的文档,如何让运行之后不显示这个空白文档?
      

  2.   


    // From CMyWinApp::InitInstance// Parse command line for standard shell commands, DDE, file open
    CCommandLineInfo cmdInfo;
    ParseCommandLine(cmdInfo);// DON'T 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;