// TimerPpg.cpp : Implementation of the CTimerPropPage property page class.

#include "stdafx.h"
#include "timer.h"
#include "TimerPpg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


IMPLEMENT_DYNCREATE(CTimerPropPage, COlePropertyPage)


/////////////////////////////////////////////////////////////////////////////
// Message map

BEGIN_MESSAGE_MAP(CTimerPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CTimerPropPage)
	// 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(CTimerPropPage, "TIMER.TimerPropPage.1",
	0x69999374, 0xbd40, 0x11cf, 0x8a, 0x6c, 0, 0xaa, 0, 0xa5, 0x80, 0x97)


/////////////////////////////////////////////////////////////////////////////
// CTimerPropPage::CTimerPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CTimerPropPage

BOOL CTimerPropPage::CTimerPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_TIMER_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CTimerPropPage::CTimerPropPage - Constructor

CTimerPropPage::CTimerPropPage() :
	COlePropertyPage(IDD, IDS_TIMER_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CTimerPropPage)
	m_showSeconds = FALSE;
	//}}AFX_DATA_INIT
}


/////////////////////////////////////////////////////////////////////////////
// CTimerPropPage::DoDataExchange - Moves data between page and properties

void CTimerPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CTimerPropPage)
	DDP_Check(pDX, IDC_CHECK1, m_showSeconds, _T("ShowSeconds") );
	DDX_Check(pDX, IDC_CHECK1, m_showSeconds);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CTimerPropPage message handlers
