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

📄 readerdoc.cpp

📁 支持各种文件格式的阅读器
💻 CPP
字号:
// readerDoc.cpp : implementation of the CReaderDoc class
//

#include "stdafx.h"
#include "reader.h"

#include "readerDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CReaderDoc

IMPLEMENT_DYNCREATE(CReaderDoc, CDocument)

BEGIN_MESSAGE_MAP(CReaderDoc, CDocument)
	//{{AFX_MSG_MAP(CReaderDoc)
		// 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
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CReaderDoc, CDocument)
	//{{AFX_DISPATCH_MAP(CReaderDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//      DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

// Note: we add support for IID_IReader to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {4C5A6157-77E4-4F1E-AB17-9AA9ECB0C690}
static const IID IID_IReader =
{ 0x4c5a6157, 0x77e4, 0x4f1e, { 0xab, 0x17, 0x9a, 0xa9, 0xec, 0xb0, 0xc6, 0x90 } };

BEGIN_INTERFACE_MAP(CReaderDoc, CDocument)
	INTERFACE_PART(CReaderDoc, IID_IReader, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CReaderDoc construction/destruction

CReaderDoc::CReaderDoc()
{
	// TODO: add one-time construction code here

	EnableAutomation();

	AfxOleLockApp();
}

CReaderDoc::~CReaderDoc()
{
	AfxOleUnlockApp();
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CReaderDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CReaderDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CReaderDoc commands

⌨️ 快捷键说明

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