// PNAlarmClockPpg.cpp : Implementation of the CPNAlarmClockPropPage property page class.

#include "stdafx.h"
#include "PNAlarmClock.h"
#include "PNAlarmClockPpg.h"

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


IMPLEMENT_DYNCREATE(CPNAlarmClockPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CPNAlarmClockPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CPNAlarmClockPropPage)
	// 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(CPNAlarmClockPropPage, "PNALARMCLOCK.PNAlarmClockPropPage.1",
	0x6f6032f1, 0x59b1, 0x11d4, 0xa0, 0x14, 0x8, 0, 0x9, 0xee, 0x62, 0xaa)


/////////////////////////////////////////////////////////////////////////////
// CPNAlarmClockPropPage::CPNAlarmClockPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CPNAlarmClockPropPage

BOOL CPNAlarmClockPropPage::CPNAlarmClockPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_PNALARMCLOCK_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CPNAlarmClockPropPage::CPNAlarmClockPropPage - Constructor

CPNAlarmClockPropPage::CPNAlarmClockPropPage() :
	COlePropertyPage(IDD, IDS_PNALARMCLOCK_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CPNAlarmClockPropPage)
	m_AlarmTime = _T("");
	//}}AFX_DATA_INIT
}


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

void CPNAlarmClockPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CPNAlarmClockPropPage)
	DDP_Text(pDX, IDC_ALARMTIME, m_AlarmTime, _T("AlarmTime") );
	DDX_Text(pDX, IDC_ALARMTIME, m_AlarmTime);
	//}}AFX_DATA_MAP
	DDP_PostProcessing(pDX);
}


/////////////////////////////////////////////////////////////////////////////
// CPNAlarmClockPropPage message handlers
