summaryrefslogtreecommitdiff
path: root/src/T2DLL/CPiledMultiBarChartView.h
blob: d16637d7c5d65a4a9909175ddae491616db6909e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "common.h"

class AFX_CLASS_EXPORT CPiledMultiBarChartView : public CWnd {
public:
	struct GraphData {
		int piles, bars;
		int *data;
	};

	static CPiledMultiBarChartView* CreateCPiledMultiBarChartViewStream(T2Archive* inStream);
	CPiledMultiBarChartView(T2Archive* inStream);
	virtual ~CPiledMultiBarChartView();
	void SetGraphData(const GraphData* inData);
	void SetPixelPerValue(int inPixelPerValue, BOOL inRefresh);
	void SetColorOfPiles(int inCount, const COLORREF* inColors, BOOL inRefresh);
	void Refresh();
	void DrawSelf();

protected:
	BOOL mSkipDrawing;
	int mPiles;
	int mBars;
	int mBarWidth;
	int mBarInterval;
	int mXOffset;
	int mLines;
	int mLineInterval;
	int mLineLength;
	int mPixelPerValue;
	COLORREF *mColorOfPiles;
	const GraphData *mGraphData;
};