This commit is contained in:
Daveo 2001-02-16 18:23:01 +00:00
parent 4c95915814
commit 5205d550c9
17 changed files with 189 additions and 90 deletions

View file

@ -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