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

📄 miedoc.cpp

📁 一个多文档浏览器
💻 CPP
字号:
// MIEDoc.cpp : implementation of the CMIEDoc class
//

#include "stdafx.h"
#include "MIE.h"

#include "MIEDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMIEDoc

IMPLEMENT_DYNCREATE(CMIEDoc, CDocument)

BEGIN_MESSAGE_MAP(CMIEDoc, CDocument)
	//{{AFX_MSG_MAP(CMIEDoc)
		// 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(CMIEDoc, CDocument)
	//{{AFX_DISPATCH_MAP(CMIEDoc)
		// 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_IMIE to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {DB89A0D9-EE84-11D3-BE9D-000021E2D75A}
static const IID IID_IMIE =
{ 0xdb89a0d9, 0xee84, 0x11d3, { 0xbe, 0x9d, 0x0, 0x0, 0x21, 0xe2, 0xd7, 0x5a } };

BEGIN_INTERFACE_MAP(CMIEDoc, CDocument)
	INTERFACE_PART(CMIEDoc, IID_IMIE, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMIEDoc construction/destruction

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

	EnableAutomation();

	AfxOleLockApp();
}

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

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CMIEDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CMIEDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CMIEDoc commands

⌨️ 快捷键说明

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