⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 viewcutdoc.cpp

📁 实现简单的分割视图并在其中实现计数器功能,以及简单的绘图
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -