// WgnuplotPpg.cpp : Implementation of the CWgnuplotPropPage property page class.

#include "stdafx.h"
#include "wgnuplot.h"
#include "WgnuplotPpg.h"

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


IMPLEMENT_DYNCREATE(CWgnuplotPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CWgnuplotPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CWgnuplotPropPage)
	// 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(CWgnuplotPropPage, "WGNUPLOT.WgnuplotPropPage.1",
	0x85f4961a, 0xd671, 0x4d30, 0xac, 0xae, 0x23, 0x4d, 0x38, 0x8b, 0x97, 0x95)


/////////////////////////////////////////////////////////////////////////////
// CWgnuplotPropPage::CWgnuplotPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CWgnuplotPropPage

BOOL CWgnuplotPropPage::CWgnuplotPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_WGNUPLOT_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CWgnuplotPropPage::CWgnuplotPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CWgnuplotPropPage message handlers
