s8_11doc.cpp

来自「四川大学教学的MFC的ppt 以及源代码」· C++ 代码 · 共 87 行

CPP
87
字号
// s8_11Doc.cpp : implementation of the CS8_11Doc class
//

#include "stdafx.h"
#include "s8_11.h"

#include "s8_11Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CS8_11Doc

IMPLEMENT_DYNCREATE(CS8_11Doc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CS8_11Doc construction/destruction

CS8_11Doc::CS8_11Doc()
{
	// TODO: add one-time construction code here
	m_xCoordinate = 0;			// 初始化横坐标
	m_yCoordinate = 0;			// 初始化纵坐标
	m_strShowText.Empty();		// 初始化显示文本
}

CS8_11Doc::~CS8_11Doc()
{
}

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

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CS8_11Doc serialization

void CS8_11Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CS8_11Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CS8_11Doc commands

⌨️ 快捷键说明

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