#pragma once #include "common.h" class AFX_EXT_CLASS 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; };