www.pudn.com > CMyChartView_ocx.rar > CMyChartViewPpg.cpp


// CMyChartViewPpg.cpp : Implementation of the CCMyChartViewPropPage property page class. 
 
#include "stdafx.h" 
#include "CMyChartView.h" 
#include "CMyChartViewPpg.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
 
IMPLEMENT_DYNCREATE(CCMyChartViewPropPage, COlePropertyPage) 
 
 
///////////////////////////////////////////////////////////////////////////// 
// Message map 
 
BEGIN_MESSAGE_MAP(CCMyChartViewPropPage, COlePropertyPage) 
	//{{AFX_MSG_MAP(CCMyChartViewPropPage) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
 
///////////////////////////////////////////////////////////////////////////// 
// Initialize class factory and guid 
 
IMPLEMENT_OLECREATE_EX(CCMyChartViewPropPage, "CMYCHARTVIEW.CMyChartViewPropPage.1", 
	0xf092a22, 0xfd9b, 0x4c70, 0xbe, 0xe0, 0x3b, 0x79, 0x2f, 0x44, 0x5, 0x87) 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CCMyChartViewPropPage::CCMyChartViewPropPageFactory::UpdateRegistry - 
// Adds or removes system registry entries for CCMyChartViewPropPage 
 
BOOL CCMyChartViewPropPage::CCMyChartViewPropPageFactory::UpdateRegistry(BOOL bRegister) 
{ 
	if (bRegister) 
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(), 
			m_clsid, IDS_CMYCHARTVIEW_PPG); 
	else 
		return AfxOleUnregisterClass(m_clsid, NULL); 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CCMyChartViewPropPage::CCMyChartViewPropPage - Constructor 
 
CCMyChartViewPropPage::CCMyChartViewPropPage() : 
	COlePropertyPage(IDD, IDS_CMYCHARTVIEW_PPG_CAPTION) 
{ 
	//{{AFX_DATA_INIT(CCMyChartViewPropPage) 
	//}}AFX_DATA_INIT 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CCMyChartViewPropPage::DoDataExchange - Moves data between page and properties 
 
void CCMyChartViewPropPage::DoDataExchange(CDataExchange* pDX) 
{ 
	//{{AFX_DATA_MAP(CCMyChartViewPropPage) 
	//}}AFX_DATA_MAP 
	DDP_PostProcessing(pDX); 
} 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CCMyChartViewPropPage message handlers