📄 scannerppg.cpp
字号:
// ScannerPpg.cpp : Implementation of the CScannerPropPage property page class.
#include "stdafx.h"
#include "scanner.h"
#include "ScannerPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CScannerPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CScannerPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CScannerPropPage)
// 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(CScannerPropPage, "SCANNER.ScannerPropPage.1",
0xdee6dcc0, 0xf6f7, 0x4f4c, 0xa8, 0xc0, 0xfa, 0x22, 0x3, 0xd9, 0x14, 0xf6)
/////////////////////////////////////////////////////////////////////////////
// CScannerPropPage::CScannerPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CScannerPropPage
BOOL CScannerPropPage::CScannerPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_SCANNER_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CScannerPropPage::CScannerPropPage - Constructor
CScannerPropPage::CScannerPropPage() :
COlePropertyPage(IDD, IDS_SCANNER_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CScannerPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CScannerPropPage::DoDataExchange - Moves data between page and properties
void CScannerPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CScannerPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CScannerPropPage message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -