#ifndef T2DLL_CPIECHARTVIEW_H #define T2DLL_CPIECHARTVIEW_H #include "../common.h" class AFX_CLASS_EXPORT CPieChartView : public CWnd { public: struct PieSlice { unsigned int value; COLORREF color; }; struct Pie { unsigned int totalValue; unsigned int sliceCount; PieSlice *slices; }; static CPieChartView* CreateCPieChartViewStream(T2Archive* inStream); CPieChartView(T2Archive* inStream); virtual ~CPieChartView(); void DrawSelf(); void CutPie(const Pie* inPie); protected: int mTextTraits; int mBorderWidth; const Pie *mPie; }; #endif