【VC开源代码栏目提醒】:网学会员在VC开源代码频道为大家收集整理了demoDoc.cpp提供大家参考,希望对大家有所帮助!
// demoDoc.cpp : CdemoDoc 类的实现
//
#include "stdafx.h"
#include "demo.h"
#include "demoDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CdemoDoc
IMPLEMENT_DYNCREATE(CdemoDoc, CDocument)
BEGIN_MESSAGE_MAP(CdemoDoc, CDocument)
END_MESSAGE_MAP()
// CdemoDoc 构造/析构
CdemoDoc::CdemoDoc()
{
// TODO: 在此添加一次性构造代码
}
CdemoDoc::~CdemoDoc()
{
}
BOOL CdemoDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: 在此添加重新初始化代码
// (SDI 文档将重用该文档)
return TRUE;
}
// CdemoDoc 序列化
void CdemoDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: 在此添加存储代码
}
else
{
// TODO: 在此添加加载代码
}
}
// CdemoDoc 诊断
#ifdef _DEBUG
void CdemoDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CdemoDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CdemoDoc 命令
上一篇:
DEMODLG.CPP
下一篇:
国家教育公平政策的思路、问题与对策