1。 // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; // if no view cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;// no empty document ParseCommandLine(cmdInfo); // ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
// if no view
cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;// no empty document
ParseCommandLine(cmdInfo);
//
ON_COMMAND(ID_FILE_NEW, CWinApp::OnFileNew)