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

📄 ezmrdoc.cpp

📁 FX2 68013的控制面板源程序
💻 CPP
字号:
////////////////////////////////////////////////////////////////////////////////
// EzMrDoc.cpp : implementation of the CEzMrDoc class
// $Header: /USB/Util/EzMr/EzMrDoc.cpp 3     8/08/00 2:26p Tpm $
// Copyright (c) 2000 Cypress Semiconductor. May not be reproduced without permission.
// See the EzUsb Developer's Kit license agreement for more details.
////////////////////////////////////////////////////////////////////////////////


#include "stdafx.h"
#include "EzMr.h"

#include "EzMrDoc.h"
#include "CntrItem.h"

//#include "EzMrFrm.h" //TPMDo: Add ToolBar manually

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

/////////////////////////////////////////////////////////////////////////////
// CEzMrDoc

IMPLEMENT_DYNCREATE(CEzMrDoc, CRichEditDoc)

BEGIN_MESSAGE_MAP(CEzMrDoc, CRichEditDoc)
	//{{AFX_MSG_MAP(CEzMrDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CEzMrDoc construction/destruction

CEzMrDoc::CEzMrDoc()
{
	// TODO: add one-time construction code here
	m_bRTF = FALSE; //TPM use ASCII text
}

CEzMrDoc::~CEzMrDoc()
{
}

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

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

	return TRUE;
}

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



/////////////////////////////////////////////////////////////////////////////
// CEzMrDoc serialization

void CEzMrDoc::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);
}

/////////////////////////////////////////////////////////////////////////////
// CEzMrDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CEzMrDoc commands

BOOL CEzMrDoc::SaveModified() 
{	
//	return CRichEditDoc::SaveModified();
	return(1); //dont pester the user about saving buffer
}

⌨️ 快捷键说明

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