editdoc.cpp
来自「Visual_C++.NET实用编程百例」· C++ 代码 · 共 73 行
CPP
73 行
// editDoc.cpp : CeditDoc 类的实现
//
#include "stdafx.h"
#include "edit.h"
#include "editDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CeditDoc
IMPLEMENT_DYNCREATE(CeditDoc, CDocument)
BEGIN_MESSAGE_MAP(CeditDoc, CDocument)
END_MESSAGE_MAP()
// CeditDoc 构造/析构
CeditDoc::CeditDoc()
{
// TODO: 在此添加一次性构造代码
}
CeditDoc::~CeditDoc()
{
}
BOOL CeditDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: 在此添加重新初始化代码
// (SDI 文档将重用该文档)
return TRUE;
}
// CeditDoc 序列化
void CeditDoc::Serialize(CArchive& ar)
{
// CEditView 包含一个处理所有序列化的编辑控件
reinterpret_cast<CEditView*>(m_viewList.GetHead())->SerializeRaw(ar);
}
// CeditDoc 诊断
#ifdef _DEBUG
void CeditDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CeditDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CeditDoc 命令
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?