#pragma once #ifndef LegendManager_h__ #define LegendManager_h__ #include "compositedrawingobject.h" #include "ChartBaseObject.h" #include "ChartDataSet.h" namespace NChart { class AFX_EXT_CLASS CLegendManager : public CCompositeDrawingObject { public: CLegendManager(); ~CLegendManager(void); virtual void SetRect(const CRect8& rcClient); virtual void Draw(CXyDC &dc); virtual int Read(CFile& fr, const short& ver); virtual void Write(CFile& fw, const short& ver); virtual void SetFont(GDFLOGFONT font); LAYOUTPOS m_ePos; protected: CChartDataSet * m_pDataset; void CreatLegendObject(CChartDataSet * pDataset); }; }//namespace #endif // LegendManager_h__