exp24_1doc.cpp

来自「mfc实验例题也是高教得配套资料 刚找到得 这部分应该是自学的内容」· C++ 代码 · 共 89 行

CPP
89
字号
// Exp24_1Doc.cpp : implementation of the CExp24_1Doc class
//

#include "stdafx.h"
#include "Exp24_1.h"

#include "Exp24_1Doc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CExp24_1Doc

IMPLEMENT_DYNCREATE(CExp24_1Doc, CDocument)

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

/////////////////////////////////////////////////////////////////////////////
// CExp24_1Doc construction/destruction

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

}

CExp24_1Doc::~CExp24_1Doc()
{
}

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

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CExp24_1Doc serialization

void CExp24_1Doc::Serialize(CArchive& ar)
{
	m_elemList.Serialize(ar);
}

/////////////////////////////////////////////////////////////////////////////
// CExp24_1Doc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CExp24_1Doc commands

void CExp24_1Doc::DeleteContents() 
{
	// TODO: Add your specialized code here and/or call the base class
	while(!m_elemList.IsEmpty()){
		delete m_elemList.RemoveHead();
	}

	CDocument::DeleteContents();
}

⌨️ 快捷键说明

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