// SafecntrlPpg.cpp : Implementation of the CSafecntrlPropPage property page class.

#include "stdafx.h"
#include "safecntrl.h"
#include "SafecntrlPpg.h"

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


IMPLEMENT_DYNCREATE(CSafecntrlPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CSafecntrlPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CSafecntrlPropPage)
	// 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(CSafecntrlPropPage, "SAFECNTRL.SafecntrlPropPage.1",
	0x4b3c0654, 0xbd2, 0x11d0, 0x8b, 0xfd, 0, 0x60, 0x8c, 0x87, 0x6f, 0xb3)


/////////////////////////////////////////////////////////////////////////////
// CSafecntrlPropPage::CSafecntrlPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CSafecntrlPropPage

BOOL CSafecntrlPropPage::CSafecntrlPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_SAFECNTRL_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CSafecntrlPropPage::CSafecntrlPropPage - Constructor

CSafecntrlPropPage::CSafecntrlPropPage() :
	COlePropertyPage(IDD, IDS_SAFECNTRL_PPG_CAPTION)
{
	//{{AFX_DATA_INIT(CSafecntrlPropPage)
	// NOTE: ClassWizard will add member initialization here
	//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_DATA_INIT
}


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

void CSafecntrlPropPage::DoDataExchange(CDataExchange* pDX)
{
	//{{AFX_DATA_MAP(CSafecntrlPropPage)
	// 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);
}


/////////////////////////////////////////////////////////////////////////////
// CSafecntrlPropPage message handlers
