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