Sunwayking

导航

如何在多文档视图中,程序一开始运行,只出现主框架,不打开一个文档呀?

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;  
  ...  
  };  
   
  摘自msdn

posted on 2009-11-30 11:11  Sunwayking  阅读(613)  评论(0编辑  收藏  举报