📄 imageprocessdoc.cpp
字号:
// ImageProcessDoc.cpp : implementation of the CImageProcessDoc class
//
#include "stdafx.h"
#include "ImageProcess.h"
#include "ImageProcessDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CImageProcessDoc
IMPLEMENT_DYNCREATE(CImageProcessDoc, CDocument)
BEGIN_MESSAGE_MAP(CImageProcessDoc, CDocument)
//{{AFX_MSG_MAP(CImageProcessDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CImageProcessDoc construction/destruction
CImageProcessDoc::CImageProcessDoc()
{
m_pDib = new CDib;
}
CImageProcessDoc::~CImageProcessDoc()
{
delete m_pDib;
}
BOOL CImageProcessDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CImageProcessDoc serialization
void CImageProcessDoc::Serialize(CArchive& ar)
{
m_pDib->Serialize(ar);
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CImageProcessDoc diagnostics
#ifdef _DEBUG
void CImageProcessDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CImageProcessDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CImageProcessDoc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -