filedemodoc1.cpp

来自「Visual C++编程宝典随书光盘里的代码」· C++ 代码 · 共 76 行

CPP
76
字号
// FileDemoDoc.cpp : implementation of the CFileDemoDoc class
//

#include "stdafx.h"
#include "FileDemo.h"

#include "FileDemoDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CFileDemoDoc

IMPLEMENT_DYNCREATE(CFileDemoDoc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CFileDemoDoc construction/destruction

CFileDemoDoc::CFileDemoDoc()
{
}

CFileDemoDoc::~CFileDemoDoc()
{
}

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CFileDemoDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CFileDemoDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CFileDemoDoc commands

⌨️ 快捷键说明

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