Click here to Skip to main content
Click here to Skip to main content
Articles » Multimedia » GDI+ » Applications » Downloads
 
Add your own
alternative version

GDI+ Plot ActiveX Control

, 5 Sep 2013 LGPL3
GDI+ 2D plot ActiveX control
// GDIPlusPlotPpg.cpp : Implementation of the CGDIPlusPlotPropPage property page class.

#include "stdafx.h"
#include "GDIPlusPlot.h"
#include "GDIPlusPlotPpg.h"

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


IMPLEMENT_DYNCREATE(CGDIPlusPlotPropPage, COlePropertyPage)


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

BEGIN_MESSAGE_MAP(CGDIPlusPlotPropPage, COlePropertyPage)
	//{{AFX_MSG_MAP(CGDIPlusPlotPropPage)
	// 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(CGDIPlusPlotPropPage, "GDIPLUSPLOT.GDIPlusPlotPropPage.1",
	0x9bc6c497, 0x1072, 0x4f56, 0x9b, 0x67, 0x70, 0x59, 0xb6, 0x30, 0x1b, 0xbf)


/////////////////////////////////////////////////////////////////////////////
// CGDIPlusPlotPropPage::CGDIPlusPlotPropPageFactory::UpdateRegistry -
// Adds or removes system registry entries for CGDIPlusPlotPropPage

BOOL CGDIPlusPlotPropPage::CGDIPlusPlotPropPageFactory::UpdateRegistry(BOOL bRegister)
{
	if (bRegister)
		return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
			m_clsid, IDS_GDIPLUSPLOT_PPG);
	else
		return AfxOleUnregisterClass(m_clsid, NULL);
}


/////////////////////////////////////////////////////////////////////////////
// CGDIPlusPlotPropPage::CGDIPlusPlotPropPage - Constructor

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


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

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


/////////////////////////////////////////////////////////////////////////////
// CGDIPlusPlotPropPage message handlers

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)

Share

About the Author

Leslie Zhai
Engineer
China China
An individual human existence should be like a river - small at first, narrowly contained within its banks, and rushing passionately past boulders and over waterfalls. Gradually the river grows wider, the banks recede, the waters flow more quietly, and in the end, without any visible break, they become merged in the sea, and painlessly lose their individual being.
Follow on   Twitter   Google+   LinkedIn

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141216.1 | Last Updated 6 Sep 2013
Article Copyright 2009 by Leslie Zhai
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid