This commit is contained in:
parent
4c95915814
commit
5205d550c9
17 changed files with 189 additions and 90 deletions
|
@ -96,7 +96,7 @@ BOOL CMapEditApp::InitInstance()
|
|||
CCommandLineInfo cmdInfo;
|
||||
ParseCommandLine(cmdInfo);
|
||||
// Prevent creating new doc on startup (should still open cmd line file tho)
|
||||
#ifndef _DEBUG
|
||||
#ifndef _DEBUGx
|
||||
if (cmdInfo.m_nShellCommand==CCommandLineInfo::FileNew) cmdInfo.m_nShellCommand=CCommandLineInfo::FileNothing;
|
||||
#endif
|
||||
// Dispatch commands specified on the command line
|
||||
|
@ -121,6 +121,14 @@ void CMapEditApp::SetCurrent(CMapEditDoc *Cur)
|
|||
}
|
||||
}
|
||||
|
||||
void CMapEditApp::CloseDoc(CMapEditDoc *Cur)
|
||||
{
|
||||
if (CurrentDoc==Cur)
|
||||
{
|
||||
CurrentDoc=NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CAboutDlg dialog used for App About
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue