?? imgprocessdoc.cpp
字號:
// ImgProcessDoc.cpp : implementation of the CImgProcessDoc class
//
#include "stdafx.h"
#include "ImgProcess.h"
#include "ImgProcessDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CImgProcessDoc
IMPLEMENT_DYNCREATE(CImgProcessDoc, CDocument)
BEGIN_MESSAGE_MAP(CImgProcessDoc, CDocument)
//{{AFX_MSG_MAP(CImgProcessDoc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CImgProcessDoc construction/destruction
CImgProcessDoc::CImgProcessDoc()
{
// TODO: add one-time construction code here
InitDocVariable();
}
CImgProcessDoc::~CImgProcessDoc()
{
FreeDocVariable();
}
BOOL CImgProcessDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CImgProcessDoc serialization
void CImgProcessDoc::Serialize(CArchive& ar)
{
m_pDibInit->Serialize(ar);
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CImgProcessDoc diagnostics
#ifdef _DEBUG
void CImgProcessDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CImgProcessDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CImgProcessDoc commands
int CImgProcessDoc::InitDocVariable()
{
m_pDibInit = new CDib;
// added by tanhc in 2002-7-30, used to test some function
m_pDibTest = new CDib;
m_nColorIndex = 0;
//--------------------------------------------
return 0;
}
int CImgProcessDoc::FreeDocVariable()
{
delete m_pDibInit;
m_pDibInit = NULL;
// added by tanhc in 2002-7-30, used to test some function
delete m_pDibTest ;
m_pDibTest = NULL ;
//--------------------------------------------
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -