www.pudn.com > 20050325_c_Pyramid.rar > PyramidDoc.cpp
// PyramidDoc.cpp : implementation of the CPyramidDoc class
//
#include "stdafx.h"
#include "Pyramid.h"
#include "PyramidDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPyramidDoc
IMPLEMENT_DYNCREATE(CPyramidDoc, CDocument)
BEGIN_MESSAGE_MAP(CPyramidDoc, CDocument)
//{{AFX_MSG_MAP(CPyramidDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CPyramidDoc construction/destruction
CPyramidDoc::CPyramidDoc()
{
// TODO: add one-time construction code here
}
CPyramidDoc::~CPyramidDoc()
{
}
BOOL CPyramidDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CPyramidDoc serialization
void CPyramidDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CPyramidDoc diagnostics
#ifdef _DEBUG
void CPyramidDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CPyramidDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CPyramidDoc commands