exampl~2.cpp
来自「本书所附光盘的内容包含了开发实例的所有程序源码」· C++ 代码 · 共 79 行
CPP
79 行
// Example010Doc.cpp : CExample010Doc 类的实现
//
#include "stdafx.h"
#include "Example010.h"
#include "Example010Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CExample010Doc
IMPLEMENT_DYNCREATE(CExample010Doc, CDocument)
BEGIN_MESSAGE_MAP(CExample010Doc, CDocument)
END_MESSAGE_MAP()
// CExample010Doc 构造/销毁
CExample010Doc::CExample010Doc()
{
// TODO:在此添加一次性构造代码
}
CExample010Doc::~CExample010Doc()
{
}
BOOL CExample010Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO:在此添加重新初始化代码
// (SDI 文档将重用该文档)
return TRUE;
}
// CExample010Doc 序列化
void CExample010Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO:在此添加存储代码
}
else
{
// TODO:在此添加加载代码
}
}
// CExample010Doc 诊断
#ifdef _DEBUG
void CExample010Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CExample010Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
// CExample010Doc 命令
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?