【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了ex42Doc.cpp相关资料,希望对各位网友有所帮助!
// ex42Doc.cpp : Cex42Doc 类的实现
//
#include "stdafx.h"
#include "ex42.h"
#include "ex42Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// Cex42Doc
IMPLEMENT_DYNCREATE(Cex42Doc, CDocument)
BEGIN_MESSAGE_MAP(Cex42Doc, CDocument)
END_MESSAGE_MAP()
// Cex42Doc 构造/销毁
Cex42Doc::Cex42Doc()
{
// TODO:在此添加一次性构造代码
}
Cex42Doc::~Cex42Doc()
{
}
BOOL Cex42Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代码
// (SDI
文档将重用该
文档)
return TRUE;
}
// Cex42Doc 序列化
void Cex42Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO:在此添加存储代码
}
else
{
// TODO:在此添加加载代码
}
}
// Cex42Doc 诊断
#ifdef _DEBUG
void Cex42Doc::AssertValid() const
{
CDocument::AssertValid();
}
void Cex42Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// Cex42Doc 命令