【VC开源代码栏目提醒】:本文主要为网学会员提供ViewDEMDoc.cpp,希望对需要ViewDEMDoc.cpp网友有所帮助,学习一下!
// ViewDEMDoc.cpp : implementation of the CViewDEMDoc class
//
#include "stdafx.h"
#include "ViewDEM.h"
#include "ViewDEMDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CViewDEMDoc
IMPLEMENT_DYNCREATE(CViewDEMDoc, CDocument)
BEGIN_MESSAGE_MAP(CViewDEMDoc, CDocument)
//{{AFX_MSG_MAP(CViewDEMDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CViewDEMDoc construction/destruction
CViewDEMDoc::CViewDEMDoc()
{
// TODO: add one-time construction code here
}
CViewDEMDoc::~CViewDEMDoc()
{
}
BOOL CViewDEMDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CViewDEMDoc serialization
void CViewDEMDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CViewDEMDoc diagnostics
#ifdef _DEBUG
void CViewDEMDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CViewDEMDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CViewDEMDoc commands