📄 exp33_1doc.cpp
字号:
// Exp33_1Doc.cpp : implementation of the CExp33_1Doc class
//
#include "stdafx.h"
#include "Exp33_1.h"
#include "Exp33_1Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CExp33_1Doc
IMPLEMENT_DYNCREATE(CExp33_1Doc, CDocument)
BEGIN_MESSAGE_MAP(CExp33_1Doc, CDocument)
//{{AFX_MSG_MAP(CExp33_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()
/////////////////////////////////////////////////////////////////////////////
// CExp33_1Doc construction/destruction
CExp33_1Doc::CExp33_1Doc()
{
// TODO: add one-time construction code here
}
CExp33_1Doc::~CExp33_1Doc()
{
}
BOOL CExp33_1Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CExp33_1Doc serialization
void CExp33_1Doc::Serialize(CArchive& ar)
{
/*if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}*/
m_elemList.Serialize(ar);
}
/////////////////////////////////////////////////////////////////////////////
// CExp33_1Doc diagnostics
#ifdef _DEBUG
void CExp33_1Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CExp33_1Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CExp33_1Doc commands
void CExp33_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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -