📄 test1doc.cpp
字号:
// test1Doc.cpp : implementation of the CTest1Doc class
//
#include "stdafx.h"
#include "test1.h"
#include "test1Doc.h"
#include "test1view.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTest1Doc
IMPLEMENT_DYNCREATE(CTest1Doc, CDocument)
BEGIN_MESSAGE_MAP(CTest1Doc, CDocument)
//{{AFX_MSG_MAP(CTest1Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CTest1Doc construction/destruction
CTest1Doc::CTest1Doc()
{
// TODO: add one-time construction code here
POSITION pos=m_ltRecord.GetHeadPosition();
while (pos)
{
CObject1* pObject=(CObject1*)m_ltRecord.GetNext(pos);
delete pObject;
}
}
CTest1Doc::~CTest1Doc()
{
}
BOOL CTest1Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CTest1Doc serialization
void CTest1Doc::Serialize(CArchive& ar)
{
m_ltRecord.Serialize(ar);
}
/////////////////////////////////////////////////////////////////////////////
// CTest1Doc diagnostics
#ifdef _DEBUG
void CTest1Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CTest1Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CTest1Doc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -