test3042doc.cpp

来自「The Lite Evaluation/Demonstration Kit is」· C++ 代码 · 共 99 行

CPP
99
字号
// Test3042Doc.cpp : implementation of the CTest3042Doc class
//

#include "stdafx.h"
#include "Test3042.h"

#include "Test3042Doc.h"
#include "CntrItem.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTest3042Doc

IMPLEMENT_DYNCREATE(CTest3042Doc, CRichEditDoc)

BEGIN_MESSAGE_MAP(CTest3042Doc, CRichEditDoc)
	//{{AFX_MSG_MAP(CTest3042Doc)
		// 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
	// Enable default OLE container implementation
	ON_UPDATE_COMMAND_UI(ID_OLE_EDIT_LINKS, CRichEditDoc::OnUpdateEditLinksMenu)
	ON_COMMAND(ID_OLE_EDIT_LINKS, CRichEditDoc::OnEditLinks)
	ON_UPDATE_COMMAND_UI(ID_OLE_VERB_FIRST, CRichEditDoc::OnUpdateObjectVerbMenu)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CTest3042Doc construction/destruction

CTest3042Doc::CTest3042Doc()
{
}

CTest3042Doc::~CTest3042Doc()
{
}

BOOL CTest3042Doc::OnNewDocument()
{
	if (!CRichEditDoc::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)
	SetTitle("TestOutput");

	return TRUE;
}

CRichEditCntrItem* CTest3042Doc::CreateClientItem(REOBJECT* preo) const
{
	// cast away constness of this
	return new CTest3042CntrItem(preo, (CTest3042Doc*) this);
}



/////////////////////////////////////////////////////////////////////////////
// CTest3042Doc serialization

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

	// Calling the base class CRichEditDoc enables serialization
	//  of the container document's COleClientItem objects.
	CRichEditDoc::Serialize(ar);
}

/////////////////////////////////////////////////////////////////////////////
// CTest3042Doc diagnostics

#ifdef _DEBUG
void CTest3042Doc::AssertValid() const
{
	CRichEditDoc::AssertValid();
}

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

/////////////////////////////////////////////////////////////////////////////
// CTest3042Doc commands

⌨️ 快捷键说明

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