初步修复
This commit is contained in:
parent
8fc4357cc6
commit
e4714f3f0e
46705 changed files with 12004901 additions and 0 deletions
82
Server/ServiceMonitorEx/Source/MainDoc.cpp
Normal file
82
Server/ServiceMonitorEx/Source/MainDoc.cpp
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
// 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue