// BWEPpg.cpp : Implementation of the CBWEPropPage property page class.

#include "stdafx.h"
#include "BWE.h"
#include "BWEPpg.h"

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


IMPLEMENT_DYNCREATE(CBWEPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CBWEPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CBWEPropPage)
	// 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(CBWEPropPage, "BWE.BWEPropPage.1",
	0xe1e72b94, 0xbec3, 0x11d3, 0x84, 0x85, 0, 0x80, 0xc8, 0x90, 0xae, 0xf9)


/////////////////////////////////////////////////////////////////////////////
// CBWEPropPage::CBWEPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CBWEPropPage

BOOL CBWEPropPage::CBWEPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_BWE_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CBWEPropPage::CBWEPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CBWEPropPage message handlers
