dibsectiontestdoc.cpp

来自「深入剖析Visual C++编程技术及应用实例」· C++ 代码 · 共 80 行

CPP
80
字号
// DIBSectionTestDoc.cpp : implementation of the CDIBSectionTestDoc class
//

#include "stdafx.h"
#include "DIBSectionTest.h"

#include "DIBSectionTestDoc.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDIBSectionTestDoc

IMPLEMENT_DYNCREATE(CDIBSectionTestDoc, CDocument)

BEGIN_MESSAGE_MAP(CDIBSectionTestDoc, CDocument)
	//{{AFX_MSG_MAP(CDIBSectionTestDoc)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDIBSectionTestDoc construction/destruction

CDIBSectionTestDoc::CDIBSectionTestDoc()
{
	// TODO: add one-time construction code here

}

CDIBSectionTestDoc::~CDIBSectionTestDoc()
{
}

BOOL CDIBSectionTestDoc::OnNewDocument()
{
    return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CDIBSectionTestDoc serialization

void CDIBSectionTestDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CDIBSectionTestDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CDIBSectionTestDoc commands

BOOL CDIBSectionTestDoc::OnOpenDocument(LPCTSTR lpszPathName) 
{
    return TRUE;
}

⌨️ 快捷键说明

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