【VC开源代码栏目提醒】:以下是网学会员为您推荐的VC开源代码-ex45Doc.cpp,希望本篇文章对您学习有所帮助。
// ex45Doc.cpp : Cex45Doc 类的实现
//
#include "stdafx.h"
#include "ex45.h"
#include "ex45Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Cex45Doc
IMPLEMENT_DYNCREATE(Cex45Doc, CDocument)
BEGIN_MESSAGE_MAP(Cex45Doc, CDocument)
END_MESSAGE_MAP()
// Cex45Doc 构造/销毁
Cex45Doc::Cex45Doc()
{
// TODO:在此添加一次性构造代码
}
Cex45Doc::~Cex45Doc()
{
}
BOOL Cex45Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代码
// (SDI
文档将重用该
文档)
return TRUE;
}
// Cex45Doc 序列化
void Cex45Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO:在此添加存储代码
}
else
{
// TODO:在此添加加载代码
}
}
// Cex45Doc 诊断
#ifdef _DEBUG
void Cex45Doc::AssertValid() const
{
CDocument::AssertValid();
}
void Cex45Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// Cex45Doc 命令