vc10doc.cpp

来自「Visual C++ 6.0编程基础与范例」· C++ 代码 · 共 85 行

CPP
85
字号
// VC10Doc.cpp : implementation of the CVC10Doc class
//

#include "stdafx.h"
#include "VC10.h"

#include "VC10Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CVC10Doc

IMPLEMENT_DYNCREATE(CVC10Doc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CVC10Doc construction/destruction

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

}

CVC10Doc::~CVC10Doc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CVC10Doc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CVC10Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CVC10Doc commands

⌨️ 快捷键说明

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