Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

2D Graph ActiveX Control

, 5 Aug 2003
An ActiveX control for 2D data visualisation
ntgraph_activex_demo.zip
NTGraph_demo
NTGraph
Debug
Demo
Debug
res
Test.ico
Test.aps
Test.clw
Test.dsp
Test.plg
NTGraph.aps
NTGraph.clw
NTGraph.def
NTGraph.dsp
NTGraph.dsw
NTGraph.ico
NTGraph.ncb
NTGraph.odl
NTGraph.opt
NTGraph.plg
NTGraphCtl.bmp
Test.exe
ntgraph_activex_src.zip
ntgraph_bin.zip
ntgraph_bin1.zip
ntgraph_bin2.zip
ntgraph_bin3.zip
ntgraph_ctrl.zip
NTGraph_Ctrl
NTGraph.aps
NTGraph.clw
NTGraph.def
NTGraph.dsp
NTGraph.dsw
NTGraph.ico
NTGraph.ncb
NTGraph.odl
NTGraph.opt
NTGraph.plg
NTGraphCtl.bmp
Release
ntgraph_ctrl1.zip
NTGraph.aps
NTGraph.clw
NTGraph.def
NTGraph.dsp
NTGraph.dsw
NTGraph.ico
NTGraph.ncb
NTGraph.odl
NTGraph.opt
NTGraph.plg
NTGraphCtl.bmp
ntgraph_ctrl2.zip
NTGraph_Ctrl2
Debug
MAGNIFY.CUR
NTGraph.aps
NTGraph.clw
NTGraph.def
NTGraph.dsp
NTGraph.dsw
NTGraph.ico
NTGraph.ncb
NTGraph.odl
NTGraph.opt
NTGraph.plg
NTGraphCtl.bmp
Release
Test.dsm
ntgraph_ctrl3.zip
NTGraph_Ctrl3
Debug
hmove.cur
MAGNIFY.CUR
NTGraph.aps
NTGraph.clw
NTGraph.def
NTGraph.dsp
NTGraph.dsw
NTGraph.ico
NTGraph.odl
NTGraph.opt
NTGraph.plg
NTGraphCtl.bmp
Release
Test.dsm
ntgraph_demo.zip
Demo.ppt
Demo.xls
DlgDemo
Demo.aps
Demo.clw
Demo.dsp
Demo.dsw
Demo.exe
Demo.ncb
Demo.opt
Demo.plg
res
Demo.ico
MDIDemo
MDIDemo.aps
MDIDemo.clw
MDIDemo.dsp
MDIDemo.dsw
MDIDemo.exe
MDIDemo.ncb
MDIDemo.opt
MDIDemo.plg
res
MDIDemo.ico
MDIDemoDoc.ico
Toolbar.bmp
ntgraph_demo1.zip
Debug
Demo.aps
Demo.clw
Demo.dsp
Demo.dsw
Demo.ncb
Demo.opt
Demo.plg
res
Demo.ico
ntgraph_demo2.zip
NTGraph_demo2
Debug
Demo.aps
Demo.clw
Demo.dsp
Demo.dsw
Demo.ncb
Demo.opt
Demo.plg
res
Demo.ico
ntgraph_demo3.zip
NTGraph_demo3
Debug
Demo.dsp
Demo.dsw
res
Demo.ico
test.pdf
ntgraph_ppt.zip
ntgraph_ppt1.zip
ntgraph_src.zip
NTGraph_src
Frame.bmp
Hlp
Bullet.bmp
NTGraph.hm
NTGraph.RTF
Margritte.bmp
Margritte.jpg
NTGraph.aps
NTGraph.clw
NTGraph.def
NTGraph.dsp
NTGraph.dsw
NTGRAPH.GID
NTGRAPH.HLP
NTGraph.hpj
NTGraph.ico
NTGraph.log
NTGraph.ncb
NTGraph.odl
NTGraph.opt
NTGraph.ph
NTGraph.plg
NTGraph.suo
NTGraphCtl.bmp
Release
Test.dsm
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


#include "stdafx.h"
#include "ntgraph1.h"

/////////////////////////////////////////////////////////////////////////////
// CNTGraph

IMPLEMENT_DYNCREATE(CNTGraph, CWnd)

/////////////////////////////////////////////////////////////////////////////
// CNTGraph properties

short CNTGraph::GetAppearance()
{
	short result;
	GetProperty(DISPID_APPEARANCE, VT_I2, (void*)&result);
	return result;
}

void CNTGraph::SetAppearance(short propVal)
{
	SetProperty(DISPID_APPEARANCE, VT_I2, propVal);
}

OLE_COLOR CNTGraph::GetBackColor()
{
	OLE_COLOR result;
	GetProperty(DISPID_BACKCOLOR, VT_I4, (void*)&result);
	return result;
}

void CNTGraph::SetBackColor(OLE_COLOR propVal)
{
	SetProperty(DISPID_BACKCOLOR, VT_I4, propVal);
}

short CNTGraph::GetBorderStyle()
{
	short result;
	GetProperty(DISPID_BORDERSTYLE, VT_I2, (void*)&result);
	return result;
}

void CNTGraph::SetBorderStyle(short propVal)
{
	SetProperty(DISPID_BORDERSTYLE, VT_I2, propVal);
}

BOOL CNTGraph::GetEnabled()
{
	BOOL result;
	GetProperty(DISPID_ENABLED, VT_BOOL, (void*)&result);
	return result;
}

void CNTGraph::SetEnabled(BOOL propVal)
{
	SetProperty(DISPID_ENABLED, VT_BOOL, propVal);
}

CString CNTGraph::GetCaption()
{
	CString result;
	GetProperty(DISPID_CAPTION, VT_BSTR, (void*)&result);
	return result;
}

void CNTGraph::SetCaption(LPCTSTR propVal)
{
	SetProperty(DISPID_CAPTION, VT_BSTR, propVal);
}

BOOL CNTGraph::GetShowGrid()
{
	BOOL result;
	GetProperty(0x1, VT_BOOL, (void*)&result);
	return result;
}

void CNTGraph::SetShowGrid(BOOL propVal)
{
	SetProperty(0x1, VT_BOOL, propVal);
}

BOOL CNTGraph::GetChangeMappingMode()
{
	BOOL result;
	GetProperty(0x2, VT_BOOL, (void*)&result);
	return result;
}

void CNTGraph::SetChangeMappingMode(BOOL propVal)
{
	SetProperty(0x2, VT_BOOL, propVal);
}

CString CNTGraph::GetXLabel()
{
	CString result;
	GetProperty(0x3, VT_BSTR, (void*)&result);
	return result;
}

void CNTGraph::SetXLabel(LPCTSTR propVal)
{
	SetProperty(0x3, VT_BSTR, propVal);
}

CString CNTGraph::GetYLabel()
{
	CString result;
	GetProperty(0x4, VT_BSTR, (void*)&result);
	return result;
}

void CNTGraph::SetYLabel(LPCTSTR propVal)
{
	SetProperty(0x4, VT_BSTR, propVal);
}

unsigned long CNTGraph::GetGridColor()
{
	unsigned long result;
	GetProperty(0x5, VT_I4, (void*)&result);
	return result;
}

void CNTGraph::SetGridColor(unsigned long propVal)
{
	SetProperty(0x5, VT_I4, propVal);
}

unsigned long CNTGraph::GetLabelColor()
{
	unsigned long result;
	GetProperty(0x6, VT_I4, (void*)&result);
	return result;
}

void CNTGraph::SetLabelColor(unsigned long propVal)
{
	SetProperty(0x6, VT_I4, propVal);
}

unsigned long CNTGraph::GetAxisColor()
{
	unsigned long result;
	GetProperty(0x7, VT_I4, (void*)&result);
	return result;
}

void CNTGraph::SetAxisColor(unsigned long propVal)
{
	SetProperty(0x7, VT_I4, propVal);
}

short CNTGraph::GetNGridX()
{
	short result;
	GetProperty(0x8, VT_I2, (void*)&result);
	return result;
}

void CNTGraph::SetNGridX(short propVal)
{
	SetProperty(0x8, VT_I2, propVal);
}

short CNTGraph::GetNGridY()
{
	short result;
	GetProperty(0x9, VT_I2, (void*)&result);
	return result;
}

void CNTGraph::SetNGridY(short propVal)
{
	SetProperty(0x9, VT_I2, propVal);
}

double CNTGraph::GetMinX()
{
	double result;
	GetProperty(0xa, VT_R8, (void*)&result);
	return result;
}

void CNTGraph::SetMinX(double propVal)
{
	SetProperty(0xa, VT_R8, propVal);
}

double CNTGraph::GetMaxX()
{
	double result;
	GetProperty(0xb, VT_R8, (void*)&result);
	return result;
}

void CNTGraph::SetMaxX(double propVal)
{
	SetProperty(0xb, VT_R8, propVal);
}

double CNTGraph::GetMinY()
{
	double result;
	GetProperty(0xc, VT_R8, (void*)&result);
	return result;
}

void CNTGraph::SetMinY(double propVal)
{
	SetProperty(0xc, VT_R8, propVal);
}

double CNTGraph::GetMaxY()
{
	double result;
	GetProperty(0xd, VT_R8, (void*)&result);
	return result;
}

void CNTGraph::SetMaxY(double propVal)
{
	SetProperty(0xd, VT_R8, propVal);
}

unsigned long CNTGraph::GetPlotColor()
{
	unsigned long result;
	GetProperty(0x11, VT_I4, (void*)&result);
	return result;
}

void CNTGraph::SetPlotColor(unsigned long propVal)
{
	SetProperty(0x11, VT_I4, propVal);
}

short CNTGraph::GetElement()
{
	short result;
	GetProperty(0x12, VT_I2, (void*)&result);
	return result;
}

void CNTGraph::SetElement(short propVal)
{
	SetProperty(0x12, VT_I2, propVal);
}

short CNTGraph::GetElementCount()
{
	short result;
	GetProperty(0x13, VT_I2, (void*)&result);
	return result;
}

void CNTGraph::SetElementCount(short propVal)
{
	SetProperty(0x13, VT_I2, propVal);
}

BOOL CNTGraph::GetShowCursor()
{
	BOOL result;
	GetProperty(0xe, VT_BOOL, (void*)&result);
	return result;
}

void CNTGraph::SetShowCursor(BOOL propVal)
{
	SetProperty(0xe, VT_BOOL, propVal);
}

CString CNTGraph::GetGraphTitle()
{
	CString result;
	GetProperty(0xf, VT_BSTR, (void*)&result);
	return result;
}

void CNTGraph::SetGraphTitle(LPCTSTR propVal)
{
	SetProperty(0xf, VT_BSTR, propVal);
}

unsigned long CNTGraph::GetCursorColor()
{
	unsigned long result;
	GetProperty(0x10, VT_I4, (void*)&result);
	return result;
}

void CNTGraph::SetCursorColor(unsigned long propVal)
{
	SetProperty(0x10, VT_I4, propVal);
}

/////////////////////////////////////////////////////////////////////////////
// CNTGraph operations

void CNTGraph::ClearGraph()
{
	InvokeHelper(0x14, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

BOOL CNTGraph::CreateElement(long nElement)
{
	BOOL result;
	static BYTE parms[] =
		VTS_I4;
	InvokeHelper(0x15, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		nElement);
	return result;
}

BOOL CNTGraph::SetRange(double MinX, double MaxX, double MinY, double MaxY)
{
	BOOL result;
	static BYTE parms[] =
		VTS_R8 VTS_R8 VTS_R8 VTS_R8;
	InvokeHelper(0x16, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		MinX, MaxX, MinY, MaxY);
	return result;
}

BOOL CNTGraph::SetXYValue(double x, double y, long index, short iElementId)
{
	BOOL result;
	static BYTE parms[] =
		VTS_R8 VTS_R8 VTS_I4 VTS_I2;
	InvokeHelper(0x17, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
		x, y, index, iElementId);
	return result;
}

void CNTGraph::AboutBox()
{
	InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Nikolai Teofilov
Researcher
Germany Germany
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 6 Aug 2003
Article Copyright 2002 by Nikolai Teofilov
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid