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

📄 testhelpdoc.cpp

📁 不错的高级代码很好
💻 CPP
字号:
// testHelpDoc.cpp : implementation of the CTestHelpDoc class
//

#include "stdafx.h"
#include "testHelp.h"

#include "testHelpDoc.h"
#include "SrvrItem.h"

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

/////////////////////////////////////////////////////////////////////////////
// CTestHelpDoc

IMPLEMENT_DYNCREATE(CTestHelpDoc, COleServerDoc)

BEGIN_MESSAGE_MAP(CTestHelpDoc, COleServerDoc)
	//{{AFX_MSG_MAP(CTestHelpDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CTestHelpDoc construction/destruction

CTestHelpDoc::CTestHelpDoc()
{
	// Use OLE compound files
	EnableCompoundFile();

	// TODO: add one-time construction code here

}

CTestHelpDoc::~CTestHelpDoc()
{
}

BOOL CTestHelpDoc::OnNewDocument()
{
	if (!COleServerDoc::OnNewDocument())
		return FALSE;

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

	return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CTestHelpDoc server implementation

COleServerItem* CTestHelpDoc::OnGetEmbeddedItem()
{
	// OnGetEmbeddedItem is called by the framework to get the COleServerItem
	//  that is associated with the document.  It is only called when necessary.

	CTestHelpSrvrItem* pItem = new CTestHelpSrvrItem(this);
	ASSERT_VALID(pItem);
	return pItem;
}



/////////////////////////////////////////////////////////////////////////////
// CTestHelpDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CTestHelpDoc diagnostics

#ifdef _DEBUG
void CTestHelpDoc::AssertValid() const
{
	COleServerDoc::AssertValid();
}

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

/////////////////////////////////////////////////////////////////////////////
// CTestHelpDoc commands

⌨️ 快捷键说明

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