buttonppg.cpp
来自「INTERNET网络高级编程的包括邮件加密、MAPI、ISAPI、ACTIVEX」· C++ 代码 · 共 77 行
CPP
77 行
// ButtonPpg.cpp : Implementation of the CButtonPropPage property page class.
#include "stdafx.h"
#include "Button.h"
#include "ButtonPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CButtonPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CButtonPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CButtonPropPage)
// 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(CButtonPropPage, "BUTTON.ButtonPropPage.1",
0xbc9c5a87, 0xc896, 0x11d4, 0xaf, 0x14, 0, 0xe0, 0x4c, 0xdd, 0x45, 0x65)
/////////////////////////////////////////////////////////////////////////////
// CButtonPropPage::CButtonPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CButtonPropPage
BOOL CButtonPropPage::CButtonPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_BUTTON_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CButtonPropPage::CButtonPropPage - Constructor
CButtonPropPage::CButtonPropPage() :
COlePropertyPage(IDD, IDS_BUTTON_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CButtonPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CButtonPropPage::DoDataExchange - Moves data between page and properties
void CButtonPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CButtonPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CButtonPropPage message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?