对命令行的处理可以在 InitInstance()函数中,
  如下一段是处理命令行的部分:
  // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo;
cmdInfo.m_nShellCommand = CCommandLineInfo::FileOpen;
cmdInfo.m_strFileName = sWorkDir+"\\default.set";
ParseCommandLine(cmdInfo); // Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
  其中cmdInfo是包含命令行信息的结构,只要对结构的成员进行处理就能达到目的。
     上面代码实现的是当程序运行时自动打开当前工作目录下的default.set文件,而不是显示一个New Document.