www.pudn.com > test3.zip > test3Doc.cpp


// test3Doc.cpp :  Ctest3Doc 类的实现 
// 
 
#include "stdafx.h" 
#include "test3.h" 
 
#include "test3Doc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#endif 
 
 
// Ctest3Doc 
 
IMPLEMENT_DYNCREATE(Ctest3Doc, CDocument) 
 
BEGIN_MESSAGE_MAP(Ctest3Doc, CDocument) 
END_MESSAGE_MAP() 
 
 
// Ctest3Doc 构造/析构 
 
Ctest3Doc::Ctest3Doc() 
{ 
	// TODO: 在此添加一次性构造代码 
 
} 
 
Ctest3Doc::~Ctest3Doc() 
{ 
} 
 
BOOL Ctest3Doc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: 在此添加重新初始化代码 
	// (SDI 文档将重用该文档) 
 
	return TRUE; 
} 
 
 
 
 
// Ctest3Doc 序列化 
 
void Ctest3Doc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: 在此添加存储代码 
	} 
	else 
	{ 
		// TODO: 在此添加加载代码 
	} 
} 
 
 
// Ctest3Doc 诊断 
 
#ifdef _DEBUG 
void Ctest3Doc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void Ctest3Doc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
 
// Ctest3Doc 命令