xxdoc.cpp

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

CPP
81
字号
// XxDoc.cpp :  CXxDoc class 类的实现
//

#include "stdafx.h"
#include "Xx.h"

#include "XxDoc.h"

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


// CXxDoc

IMPLEMENT_DYNCREATE(CXxDoc, CDocument)

BEGIN_MESSAGE_MAP(CXxDoc, CDocument)
	//{{AFX_MSG_MAP(CXxDoc)
		// 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()

// CXxDoc 构造/销毁

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

}

CXxDoc::~CXxDoc()
{
}

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

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

	return TRUE;
}



// CXxDoc 序列化

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

// CXxDoc 诊断

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

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

// CXxDoc 命令

⌨️ 快捷键说明

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