multiviewdoc.cpp

来自「用VC编写的程序」· C++ 代码 · 共 87 行

CPP
87
字号
// MultiViewDoc.cpp : implementation of the CMultiViewDoc class
//

#include "stdafx.h"
#include "MultiView.h"

#include "MultiViewDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMultiViewDoc

IMPLEMENT_DYNCREATE(CMultiViewDoc, CDocument)

BEGIN_MESSAGE_MAP(CMultiViewDoc, CDocument)
	//{{AFX_MSG_MAP(CMultiViewDoc)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CMultiViewDoc construction/destruction

CMultiViewDoc::CMultiViewDoc()
{
	// TODO: add one-time construction code here
    m_cRectangle=RGB(0,0,0);
}

CMultiViewDoc::~CMultiViewDoc()
{
}

BOOL CMultiViewDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CMultiViewDoc serialization

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

/////////////////////////////////////////////////////////////////////////////
// CMultiViewDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CMultiViewDoc commands

⌨️ 快捷键说明

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