【VC开源代码栏目提醒】:本文主要为网学会员提供edittextDoc.cpp,希望对需要edittextDoc.cpp网友有所帮助,学习一下!
// edittextDoc.cpp : CedittextDoc 类的实现
//
#include "stdafx.h"
#include "edittext.h"
#include "edittextDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CedittextDoc
IMPLEMENT_DYNCREATE(CedittextDoc, CDocument)
BEGIN_MESSAGE_MAP(CedittextDoc, CDocument)
END_MESSAGE_MAP()
// CedittextDoc 构造/析构
CedittextDoc::CedittextDoc()
{
// TODO: 在此添加一次性构造代码
}
CedittextDoc::~CedittextDoc()
{
}
BOOL CedittextDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
reinterpret_cast<CEditView*>(m_viewList.GetHead())->SetWindowText(NULL);
// TODO: 在此添加重新初始化代码
// (SDI 文档将重用该文档)
return TRUE;
}
// CedittextDoc 序列化
void CedittextDoc::Serialize(CArchive& ar)
{
// CEditView 包含一个处理所有序列化的编辑控件
reinterpret_cast<CEditView*>(m_viewList.GetHead())->SerializeRaw(ar);
}
// CedittextDoc 诊断
#ifdef _DEBUG
void CedittextDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CedittextDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CedittextDoc 命令
上一篇:
edittext.cpp
下一篇:
最新参考文献中的标点符号