82 lines
2.4 KiB
C++
82 lines
2.4 KiB
C++
// MainDoc.cpp : implementation of the CMainDoc class
|
||
//
|
||
|
||
#include "stdafx.h"
|
||
#include "ServiceMonitor.h"
|
||
|
||
#include "MainDoc.h"
|
||
|
||
#ifdef _DEBUG
|
||
#define new DEBUG_NEW
|
||
#endif
|
||
|
||
|
||
// CMainDoc
|
||
|
||
IMPLEMENT_DYNCREATE(CMainDoc, CDocument)
|
||
|
||
BEGIN_MESSAGE_MAP(CMainDoc, CDocument)
|
||
END_MESSAGE_MAP()
|
||
|
||
|
||
// CMainDoc construction/destruction
|
||
|
||
CMainDoc::CMainDoc()
|
||
{
|
||
// TODO: add one-time construction code here
|
||
|
||
CServiceMonitorApp* aWinApp = static_cast<CServiceMonitorApp*>(::AfxGetApp());
|
||
ASSERT(NULL != aWinApp);
|
||
aWinApp->SetAppDoc(this);
|
||
|
||
}
|
||
|
||
CMainDoc::~CMainDoc()
|
||
{
|
||
}
|
||
|
||
BOOL CMainDoc::OnNewDocument()
|
||
{
|
||
if (!CDocument::OnNewDocument())
|
||
return FALSE;
|
||
|
||
// TODO: add reinitialization code here
|
||
// (SDI documents will reuse this document)
|
||
|
||
return TRUE;
|
||
}
|
||
|
||
|
||
|
||
|
||
// CMainDoc serialization
|
||
|
||
void CMainDoc::Serialize(CArchive& ar)
|
||
{
|
||
if (ar.IsStoring())
|
||
{
|
||
// TODO: add storing code here
|
||
}
|
||
else
|
||
{
|
||
// TODO: add loading code here
|
||
}
|
||
}
|
||
|
||
|
||
// CMainDoc diagnostics
|
||
|
||
#ifdef _DEBUG
|
||
void CMainDoc::AssertValid() const
|
||
{
|
||
CDocument::AssertValid();
|
||
}
|
||
|
||
void CMainDoc::Dump(CDumpContext& dc) const
|
||
{
|
||
CDocument::Dump(dc);
|
||
}
|
||
#endif //_DEBUG
|
||
|
||
|
||
// CMainDoc commands
|