demo2doc.cpp

来自「《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应」· C++ 代码 · 共 76 行

CPP
76
字号
// demo2Doc.cpp : implementation of the CDemo2Doc class
//

#include "stdafx.h"
#include "demo2.h"

#include "demo2Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDemo2Doc

IMPLEMENT_DYNCREATE(CDemo2Doc, CDocument)

BEGIN_MESSAGE_MAP(CDemo2Doc, CDocument)
	//{{AFX_MSG_MAP(CDemo2Doc)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDemo2Doc construction/destruction

CDemo2Doc::CDemo2Doc()
{
}

CDemo2Doc::~CDemo2Doc()
{
}

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CDemo2Doc serialization

void CDemo2Doc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
	}
	else
	{
	}
}

/////////////////////////////////////////////////////////////////////////////
// CDemo2Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CDemo2Doc commands

⌨️ 快捷键说明

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