shujukudoc.cpp

来自「编译器」· C++ 代码 · 共 97 行

CPP
97
字号
// shujukuDoc.cpp : implementation of the CShujukuDoc class
//

#include "stdafx.h"
#include "shujuku.h"

#include "shujukuDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CShujukuDoc

IMPLEMENT_DYNCREATE(CShujukuDoc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CShujukuDoc construction/destruction

CShujukuDoc::CShujukuDoc()
{
	// TODO: add one-time construction code here
    query=new Query();
	i=9;
	j=9;
	sql=NULL;
    node=NULL;
	start=NULL;
}

CShujukuDoc::~CShujukuDoc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CShujukuDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CShujukuDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CShujukuDoc commands

void CShujukuDoc::SetTitle(LPCTSTR lpszTitle) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	CDocument::SetTitle("wenming");
}

⌨️ 快捷键说明

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