test1doc.cpp

来自「主要传递文档类指针」· C++ 代码 · 共 82 行

CPP
82
字号
// test1Doc.cpp :  Ctest1Doc 类的实现
//

#include "stdafx.h"
#include "test1.h"

#include "test1Doc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// Ctest1Doc

IMPLEMENT_DYNCREATE(Ctest1Doc, CDocument)

BEGIN_MESSAGE_MAP(Ctest1Doc, CDocument)
END_MESSAGE_MAP()


// Ctest1Doc 构造/析构

Ctest1Doc::Ctest1Doc()
{
	// TODO: 在此添加一次性构造代码
	a=1;
	b=1;
	

}

Ctest1Doc::~Ctest1Doc()
{
}

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

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

	return TRUE;
}




// Ctest1Doc 序列化

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


// Ctest1Doc 诊断

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

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


// Ctest1Doc 命令

⌨️ 快捷键说明

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