Click here to Skip to main content
15,884,298 members
Articles / Web Development / HTML

2D Graph ActiveX Control in C++ with ATL (No MFC Dependency)

Rate me:
Please Sign up or sign in to vote.
4.92/5 (25 votes)
8 Mar 2012CPOL7 min read 122.9K   11.9K   93  
Plots multiple data sets, interactive tooltip info, zoom/pan, edit color/width/format, annotations, print/save
/////////////////////////////////////////////////////////////////////////////
// (c) Copyright The Code Project Open License (CPOL)
//  http://www.codeproject.com/info/cpol10.aspx
//
//  Marius Samoila 2011
//
// FILE NAME
//		PointData.cpp: implementation for the CPointData class
//
// CLASS NAME
//		CPointData
//
// DESCRIPTION
// 
// MODIFICATIONS
// 11-Dec-2011 MSamoila created
//

#include "stdafx.h"
#include "PointData.h"

int CPointData::GetText(int i, LPTSTR szText, int cbLen)
{
	USES_CONVERSION;

	switch(i)
	{
	case 0:
		return _sntprintf(szText, cbLen, _T("%g"), x);
	case 1:
		return _sntprintf(szText, cbLen, _T("%g"), y);
	default:
		return 0;
	}
}

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 Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada

Comments and Discussions