viewcutdoc.cpp
来自「实现简单的分割视图并在其中实现计数器功能,以及简单的绘图」· C++ 代码 · 共 86 行
CPP
86 行
// viewcutDoc.cpp : implementation of the CViewcutDoc class
//
#include "stdafx.h"
#include "viewcut.h"
#include "viewcutDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CViewcutDoc
IMPLEMENT_DYNCREATE(CViewcutDoc, CDocument)
BEGIN_MESSAGE_MAP(CViewcutDoc, CDocument)
//{{AFX_MSG_MAP(CViewcutDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CViewcutDoc construction/destruction
CViewcutDoc::CViewcutDoc()
{
memset(&logfont,0,sizeof(LOGFONT));
//strcpy((LPSTR)&(logfont.lfFaceName),"黑体");
}
CViewcutDoc::~CViewcutDoc()
{
}
BOOL CViewcutDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CViewcutDoc serialization
void CViewcutDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CViewcutDoc diagnostics
#ifdef _DEBUG
void CViewcutDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CViewcutDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CViewcutDoc commands
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?