LineChart.h
上传用户:hbytqc8
上传日期:2014-07-31
资源大小:527k
文件大小:2k
- #if !defined(AFX_LINECHART_H__9F09500E_6FE3_4AAC_8D5C_39579AADAD77__INCLUDED_)
- #define AFX_LINECHART_H__9F09500E_6FE3_4AAC_8D5C_39579AADAD77__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // LineChart.h : header file
- //
- #include "AfxTempl.h"
- /////////////////////////////////////////////////////////////////////////////
- // CLineChart window
- class CLineChart : public CStatic
- {
- // Construction
- public:
- CLineChart(CSize cs);
- // Attributes
- public:
- CString title,xLegend,yLegend;
- CFont tFont;
- CSize ChartSize;
- COLORREF bkcolor;
- int Count,first;
- //long int Number;
- int yMax;
- bool mark,legend,percent;
- unsigned long xSum,ySum;
- struct LineData
- {
- int x;
- int y;
- CString xP;
- CString yP;
- CString xTime;
- CString yTime;
- };
- CArray <LineData,LineData&> ArrayData;
- // Operations
- public:
- void Append(int x1,int y1,CString xtt,CString ytt="");
- void Init();
- void SetTitle(CString str);
- void SetLegend(CString xStr,CString yStr);
- void SetFirst(bool tf);
- void SetMark();
- void SetLegend();
- void SetMyBKColor(COLORREF color);
- void WorkPercent();
- void SetPercent();
- CString GetText();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CLineChart)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CLineChart();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CLineChart)
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_LINECHART_H__9F09500E_6FE3_4AAC_8D5C_39579AADAD77__INCLUDED_)