This commit is contained in:
parent
84eb6ded52
commit
17b863e4be
7 changed files with 50 additions and 39 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue