// NTGraphPpg.cpp : Implementation of the CNTGraphPropPage property page class.
#include "stdafx.h"
#include "NTGraph.h"
#include "NTGraphPpg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CNTGraphPropPage, COlePropertyPage)
/////////////////////////////////////////////////////////////////////////////
// Message map
BEGIN_MESSAGE_MAP(CNTGraphPropPage, COlePropertyPage)
//{{AFX_MSG_MAP(CNTGraphPropPage)
// 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(CNTGraphPropPage, "NTGRAPH.NTGraphPropPage.1",
0x2674a66, 0x9d92, 0x4431, 0x96, 0x91, 0x36, 0x90, 0xc7, 0x1f, 0x40, 0x99)
/////////////////////////////////////////////////////////////////////////////
// CNTGraphPropPage::CNTGraphPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CNTGraphPropPage
BOOL CNTGraphPropPage::CNTGraphPropPageFactory::UpdateRegistry(BOOL bRegister)
{
if (bRegister)
return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
m_clsid, IDS_NTGRAPH_PPG);
else
return AfxOleUnregisterClass(m_clsid, NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CNTGraphPropPage::CNTGraphPropPage - Constructor
CNTGraphPropPage::CNTGraphPropPage() :
COlePropertyPage(IDD, IDS_NTGRAPH_PPG_CAPTION)
{
//{{AFX_DATA_INIT(CNTGraphPropPage)
m_bShowGrid = FALSE;
m_bMMode = FALSE;
m_bShowCursor = FALSE;
//}}AFX_DATA_INIT
}
/////////////////////////////////////////////////////////////////////////////
// CNTGraphPropPage::DoDataExchange - Moves data between page and properties
void CNTGraphPropPage::DoDataExchange(CDataExchange* pDX)
{
//{{AFX_DATA_MAP(CNTGraphPropPage)
DDP_Check(pDX, IDC_CHECK_SHOWGRID, m_bShowGrid, _T("ShowGrid") );
DDX_Check(pDX, IDC_CHECK_SHOWGRID, m_bShowGrid);
DDP_Check(pDX, IDC_CHECK_MMODE, m_bMMode, _T("ChangeMappingMode") );
DDX_Check(pDX, IDC_CHECK_MMODE, m_bMMode);
DDP_Check(pDX, IDC_CHECK_SHOWCUR, m_bShowCursor, _T("ShowCursor") );
DDX_Check(pDX, IDC_CHECK_SHOWCUR, m_bShowCursor);
//}}AFX_DATA_MAP
DDP_PostProcessing(pDX);
}
/////////////////////////////////////////////////////////////////////////////
// CNTGraphPropPage message handlers