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

📄 ex_docviewdoc.cpp

📁 一系列的c++例子 一步一步由浅入深 有 聊天室
💻 CPP
字号:
// Ex_DocViewDoc.cpp : implementation of the CEx_DocViewDoc class
//

#include "stdafx.h"
#include "Ex_DocView.h"

#include "Ex_DocViewDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEx_DocViewDoc

IMPLEMENT_DYNCREATE(CEx_DocViewDoc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CEx_DocViewDoc construction/destruction

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

}

CEx_DocViewDoc::~CEx_DocViewDoc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CEx_DocViewDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CEx_DocViewDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CEx_DocViewDoc commands

void CEx_DocViewDoc::DeleteContents() 
{
    while(!m_dataList.IsEmpty())
    delete  m_dataList.RemoveHead();
	
	CDocument::DeleteContents();
}

⌨️ 快捷键说明

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