The Class is used by simply adding a CStatic Control with the class CGraphCtrl to a dialog.

vector<vector <COLORREF> > PlotData;

CGraphCtrl

GraphCtrl.h
	void Resize(const unsigned short width, const unsigned short height);
	void FullResize(const CRect newRect);
	void SetSize(const unsigned short width, const unsigned short height);
	void SetPlotDataSize(const int x, const int y);
	CRect GetSize();
	CRect GetPlotDataSize();
CGraphCtrl.cpp
	void SetPlotData(vector</vector><vector <COLORREF> > InputArray);
	void UpdatePlot();
	void PaintPixel(CMemDC* pDC, const int x, const int y, COLORREF c);
	void PlotToDC(CMemDC* pDC);