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