【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了ClockPpg.cpp相关资料,希望对各位网友有所帮助!
// ClockPpg.cpp : Implementation of the CClockPropPage property page class.
#include "stdafx.h"
#include "Clock.h"
#include "ClockPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CClockPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CClockPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CClockPropPage)
// 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(CClockPropPage, "CLOCK.ClockPropPage.1",
0xaa89f3ff, 0x991b, 0x11d2, 0x81, 0x3, 0xdb, 0x87, 0xba, 0x51, 0x12, 0xfb)
/////////////////////////////////////////////////////////////////////////////
// CClockPropPage::CClockPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CClockPropPage
BOOL CClockPropPage::CClockPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_CLOCK_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CClockPropPage::CClockPropPage - Constructor
CClockPropPage::CClockPropPage() :
COlePropertyPage(IDD, IDS_CLOCK_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CClockPropPage)
// NOTE: ClassWizard will add member initialization here
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CClockPropPage::DoDataExchange - Moves data between page and properties
void CClockPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CClockPropPage)
// 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);
}
/////////////////////////////////////////////////////////////////////////////
// CClockPropPage message handlers