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

📄 sjsysdoc.cpp

📁 本程序使用Visual C++6.0编写
💻 CPP
字号:
// SjsysDoc.cpp : implementation of the CSjsysDoc class
//

#include "stdafx.h"
#include "Sjsys.h"

#include "SjsysDoc.h"
#include "CntrItem.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSjsysDoc

IMPLEMENT_DYNCREATE(CSjsysDoc, CRichEditDoc)

BEGIN_MESSAGE_MAP(CSjsysDoc, CRichEditDoc)
	//{{AFX_MSG_MAP(CSjsysDoc)
		// 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_RANGE(ID_OLE_VERB_FIRST, ID_OLE_VERB_LAST, CRichEditDoc::OnUpdateObjectVerbMenu)
END_MESSAGE_MAP()

BEGIN_DISPATCH_MAP(CSjsysDoc, CRichEditDoc)
	//{{AFX_DISPATCH_MAP(CSjsysDoc)
		// 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_ISjsys to support typesafe binding
//  from VBA.  This IID must match the GUID that is attached to the 
//  dispinterface in the .ODL file.

// {98CF9BDD-5BBC-4C8A-87E6-CF74190E87AE}
static const IID IID_ISjsys =
{ 0x98cf9bdd, 0x5bbc, 0x4c8a, { 0x87, 0xe6, 0xcf, 0x74, 0x19, 0xe, 0x87, 0xae } };

BEGIN_INTERFACE_MAP(CSjsysDoc, CRichEditDoc)
	INTERFACE_PART(CSjsysDoc, IID_ISjsys, Dispatch)
END_INTERFACE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSjsysDoc construction/destruction

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

	EnableAutomation();

	AfxOleLockApp();
}

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

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

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

	return TRUE;
}

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



/////////////////////////////////////////////////////////////////////////////
// CSjsysDoc serialization

void CSjsysDoc::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.
	// TODO: set CRichEditDoc::m_bRTF = FALSE if you are serializing as text
	CRichEditDoc::Serialize(ar);
}

/////////////////////////////////////////////////////////////////////////////
// CSjsysDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CSjsysDoc commands

BOOL CSjsysDoc::CanCloseFrame(CFrameWnd* pFrame) 
{
	// TODO: Add your specialized code here and/or call the base class
	SetModifiedFlag(false);
	return CRichEditDoc::CanCloseFrame(pFrame);
}

⌨️ 快捷键说明

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