改写你的OnNewDocument(),让它不要New一个文档。

解决方案 »

  1.   

    在你的CYourApp::InitInstance()中,去掉下面的代码:
    if (!ProcessShellCommand(cmdInfo))
    return FALSE;因为,ProcessShellCommand(cmdInfo)会自动开一个空文档。
      

  2.   

    修改InitInstance函数,添加:
    if (cmdInfo.m_nShellCommand == CCommandLineInfo::FileNew)
    cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;

    if (!ProcessShellCommand(cmdInfo))
      

  3.   

    修改InitInstance函数,调用
        cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing 这样才是正确的!!