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

📄 imageprocessppg.cpp

📁 这是书上的代码
💻 CPP
字号:
// ImageProcessPpg.cpp : Implementation of the CImageProcessPropPage property page class.

#include "stdafx.h"
#include "ImageProcess.h"
#include "ImageProcessPpg.h"

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


IMPLEMENT_DYNCREATE(CImageProcessPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CImageProcessPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CImageProcessPropPage)
	// NOTE - ClassWizard will add and remove message map entries
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// Initialize class factory and guid

IMPLEMENT_OLECREATE_EX(CImageProcessPropPage, "IMAGEPROCESS.ImageProcessPropPage.1",
	0x17a90568, 0xa273, 0x11d6, 0xa0, 0xf2, 0, 0x80, 0xc8, 0xeb, 0xbc, 0x7d)


/////////////////////////////////////////////////////////////////////////////
// CImageProcessPropPage::CImageProcessPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CImageProcessPropPage

BOOL CImageProcessPropPage::CImageProcessPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_IMAGEPROCESS_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CImageProcessPropPage::CImageProcessPropPage - Constructor

CImageProcessPropPage::CImageProcessPropPage() :
	COlePropertyPage(IDD, IDS_IMAGEPROCESS_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CImageProcessPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CImageProcessPropPage::DoDataExchange - Moves data between page and properties

void CImageProcessPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CImageProcessPropPage)
	// NOTE: ClassWizard will add DDP, DDX, and DDV calls here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CImageProcessPropPage message handlers

⌨️ 快捷键说明

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