ex030102doc.cpp
来自「深入浅出Visual C++入门进阶与应用实例 随书光盘 作者 何志丹」· C++ 代码 · 共 85 行
CPP
85 行
// Ex030102Doc.cpp : implementation of the CEx030102Doc class
//
#include "stdafx.h"
#include "Ex030102.h"
#include "Ex030102Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEx030102Doc
IMPLEMENT_DYNCREATE(CEx030102Doc, CDocument)
BEGIN_MESSAGE_MAP(CEx030102Doc, CDocument)
//{{AFX_MSG_MAP(CEx030102Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CEx030102Doc construction/destruction
CEx030102Doc::CEx030102Doc()
{
// TODO: add one-time construction code here
}
CEx030102Doc::~CEx030102Doc()
{
}
BOOL CEx030102Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CEx030102Doc serialization
void CEx030102Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CEx030102Doc diagnostics
#ifdef _DEBUG
void CEx030102Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CEx030102Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEx030102Doc commands
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?