zdfsjdoc.cpp

来自「这是一个很好的游戏啊」· C++ 代码 · 共 91 行

CPP
91 行
字号
// ZdfsjDoc.cpp : implementation of the CZdfsjDoc class
//

#include "stdafx.h"
#include "Zdfsj.h"

#include "ZdfsjDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CZdfsjDoc

IMPLEMENT_DYNCREATE(CZdfsjDoc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CZdfsjDoc construction/destruction

CZdfsjDoc::CZdfsjDoc()
{
	// TODO: add one-time construction code here

}

CZdfsjDoc::~CZdfsjDoc()
{
}

BOOL CZdfsjDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	 m_ni=0;
	m_pointX=400;
    m_pointY=400;
	m_nCount=0;



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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CZdfsjDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CZdfsjDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CZdfsjDoc commands

⌨️ 快捷键说明

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