【VC开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VC开源代码-ex31Doc.cpp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
// ex31Doc.cpp : Cex31Doc 类的实现
//
#include "stdafx.h"
#include "ex31.h"
#include "ex31Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Cex31Doc
IMPLEMENT_DYNCREATE(Cex31Doc, CDocument)
BEGIN_MESSAGE_MAP(Cex31Doc, CDocument)
END_MESSAGE_MAP()
// Cex31Doc 构造/销毁
Cex31Doc::Cex31Doc()
{
// TODO:在此添加一次性构造代码
}
Cex31Doc::~Cex31Doc()
{
}
BOOL Cex31Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代码
// (SDI
文档将重用该
文档)
return TRUE;
}
// Cex31Doc 序列化
void Cex31Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO:在此添加存储代码
}
else
{
// TODO:在此添加加载代码
}
}
// Cex31Doc 诊断
#ifdef _DEBUG
void Cex31Doc::AssertValid() const
{
CDocument::AssertValid();
}
void Cex31Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// Cex31Doc 命令