// ProductInfoPpg.cpp : Implementation of the CProductInfoPropPage property page class.

#include "stdafx.h"
#include "ProductInfo.h"
#include "ProductInfoPpg.h"

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


IMPLEMENT_DYNCREATE(CProductInfoPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CProductInfoPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CProductInfoPropPage)
	// 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(CProductInfoPropPage, "PRODUCTINFO.ProductInfoPropPage.1",
	0x3c80ddc7, 0xc4a3, 0x11d6, 0xa8, 0x56, 0, 0x50, 0x56, 0x40, 0x37, 0x37)


/////////////////////////////////////////////////////////////////////////////
// CProductInfoPropPage::CProductInfoPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CProductInfoPropPage

BOOL CProductInfoPropPage::CProductInfoPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_PRODUCTINFO_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CProductInfoPropPage::CProductInfoPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CProductInfoPropPage message handlers
