This commit is contained in:
Daveo 2001-02-14 22:35:47 +00:00
parent 1b5d03f9db
commit cd1c32cfd1
24 changed files with 466 additions and 595 deletions

View file

@ -42,12 +42,13 @@ CMapEditApp::CMapEditApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
CurrentDoc=0;
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CMapEditApp object
CMapEditApp theApp;
CMapEditApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CMapEditApp initialization
@ -104,11 +105,21 @@ BOOL CMapEditApp::InitInstance()
// The main window has been initialized, so show and update it.
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
void CMapEditApp::SetCurrent(CMapEditDoc *Cur)
{
// prevent over initialisation
ASSERT(Cur);
if (CurrentDoc!=Cur)
{
CurrentDoc=Cur;
CurrentDoc->UpdateAll();
}
}
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
@ -164,5 +175,4 @@ void CMapEditApp::OnAppAbout()
}
/////////////////////////////////////////////////////////////////////////////
// CMapEditApp message handlers