This commit is contained in:
Daveo 2000-11-04 18:24:51 +00:00
parent 84eb6ded52
commit 17b863e4be
7 changed files with 50 additions and 39 deletions

View file

@ -95,10 +95,11 @@ BOOL CMapEditApp::InitInstance()
// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Prevent creating new doc on startup (should still open cmd line file tho
if (cmdInfo.m_nShellCommand==CCommandLineInfo::FileNew) cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
if (!ProcessShellCommand(cmdInfo)) return FALSE;
// The main window has been initialized, so show and update it.
pMainFrame->ShowWindow(m_nCmdShow);