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