📄 colorchgppg.cpp
字号:
// ColorChgPpg.cpp : Implementation of the CColorChgPropPage property page class.
#include "stdafx.h"
#include "ColorChg.h"
#include "ColorChgPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CColorChgPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CColorChgPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CColorChgPropPage)
// 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(CColorChgPropPage, "COLORCHG.ColorChgPropPage.1",
0x428ca4a5, 0xa5c8, 0x11d0, 0x98, 0x87, 0, 0xa0, 0x24, 0xda, 0x5f, 0xb)
/////////////////////////////////////////////////////////////////////////////
// CColorChgPropPage::CColorChgPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CColorChgPropPage
BOOL CColorChgPropPage::CColorChgPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_COLORCHG_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CColorChgPropPage::CColorChgPropPage - Constructor
CColorChgPropPage::CColorChgPropPage() :
COlePropertyPage(IDD, IDS_COLORCHG_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CColorChgPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CColorChgPropPage::DoDataExchange - Moves data between page and properties
void CColorChgPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CColorChgPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CColorChgPropPage message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -