dofdoc.cpp

来自「《突破Visual C++.NET编程实例五十讲+源文件,初学者学习的好东东!」· C++ 代码 · 共 84 行

CPP
84
字号
// DofDoc.cpp : 类的实现 
//

#include "stdafx.h"
#include "Dof.h"

#include "DofDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


// CDofDoc

IMPLEMENT_DYNCREATE(CDofDoc, CDocument)

BEGIN_MESSAGE_MAP(CDofDoc, CDocument)
	//{{AFX_MSG_MAP(CDofDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


// CDofDoc 构造/销毁

CDofDoc::CDofDoc()
{
	//在此添加一次性构造代码
}

CDofDoc::~CDofDoc()
{
}

BOOL CDofDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO:在此添加重新初始化代码
	// (SDI 文档将重用该文档)

	return TRUE;
}



// CDofDoc序列化

void CDofDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO:在此添加存储代码
	}
		
	else
	{
		// TODO:在此添加加载代码
	}
}


// CDofDoc 诊断

#ifdef _DEBUG
void CDofDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CDofDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG


// CDofDoc命令

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?