// NetPlayXPpg.cpp : Implementation of the CNetPlayXPropPage property page class.

#include "stdafx.h"
#include "NetPlayX.h"
#include "NetPlayXPpg.h"

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


IMPLEMENT_DYNCREATE(CNetPlayXPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CNetPlayXPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CNetPlayXPropPage)
	// 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(CNetPlayXPropPage, "NETPLAYX.NetPlayXPropPage.1",
	0x94a17be0, 0x9c86, 0x4321, 0x8e, 0x44, 0x4a, 0x1c, 0x93, 0x1a, 0x1d, 0x88)


/////////////////////////////////////////////////////////////////////////////
// CNetPlayXPropPage::CNetPlayXPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CNetPlayXPropPage

BOOL CNetPlayXPropPage::CNetPlayXPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_NETPLAYX_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CNetPlayXPropPage::CNetPlayXPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CNetPlayXPropPage message handlers
