⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test3042doc.cpp

📁 The Lite Evaluation/Demonstration Kit is intended to illustrate use of the AN3042. The AN3042 is c
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -