// LicPpg.cpp : Implementation of the CLicPropPage property page class.

#include "stdafx.h"
#include "lic.h"
#include "LicPpg.h"

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


IMPLEMENT_DYNCREATE(CLicPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CLicPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CLicPropPage)
	// 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(CLicPropPage, "LIC.LicPropPage.1",
	0x72c27db4, 0xd682, 0x11cf, 0x9d, 0x9a, 0, 0x60, 0x8c, 0x87, 0x6f, 0xb3)


/////////////////////////////////////////////////////////////////////////////
// CLicPropPage::CLicPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CLicPropPage

BOOL CLicPropPage::CLicPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_LIC_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CLicPropPage::CLicPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CLicPropPage message handlers
