// TestMarshalPpg.cpp : Implementation of the CTestMarshalPropPage property page class.

#include "stdafx.h"
#include "TestMarshal.h"
#include "TestMarshalPpg.h"

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


IMPLEMENT_DYNCREATE(CTestMarshalPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CTestMarshalPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CTestMarshalPropPage)
	// 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(CTestMarshalPropPage, "TESTMARSHAL.TestMarshalPropPage.1",
	0xdcd0e531, 0xd721, 0x4b3f, 0x89, 0xe1, 0x70, 0xc9, 0xd2, 0xc5, 0x89, 0x88)


/////////////////////////////////////////////////////////////////////////////
// CTestMarshalPropPage::CTestMarshalPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CTestMarshalPropPage

BOOL CTestMarshalPropPage::CTestMarshalPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_TESTMARSHAL_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CTestMarshalPropPage::CTestMarshalPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CTestMarshalPropPage message handlers
