(他山之石)MFC学习之路(二)如何在多文档视图中,程序一开始运行,只出现主框架,不打开一个文档?

来源:互联网 发布:淘宝联盟怎么注销账号 编辑:程序博客网 时间:2024/05/22 12:09

转自:http://www.cnblogs.com/Sunwayking/articles/1613566.html

Example  
   
  BOOL   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;  
  ...  
  };  

原创粉丝点击