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

📄 rctdoc.cpp

📁 《VC++ 编程技巧与示例 .rar》各个示例代码绝对可用
💻 CPP
字号:
// RCTDoc.cpp : implementation file
//

#include "stdafx.h"
#include "MDTTest.h"
#include "RCTDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CRCTDoc

IMPLEMENT_DYNCREATE(CRCTDoc, CDocument)

CRCTDoc::CRCTDoc()
{
	m_clr=RGB(100,100,255);
}

BOOL CRCTDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;
	return TRUE;
}

CRCTDoc::~CRCTDoc()
{
}


BEGIN_MESSAGE_MAP(CRCTDoc, CDocument)
	//{{AFX_MSG_MAP(CRCTDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRCTDoc diagnostics

#ifdef _DEBUG
void CRCTDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CRCTDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CRCTDoc serialization

void CRCTDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
		ar<<m_clr;
	}
	else
	{
		// TODO: add loading code here
		ar>>m_clr;
	}
}

/////////////////////////////////////////////////////////////////////////////
// CRCTDoc commands

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -