linedata.h

来自「windows ce开发技巧与实例光盘代码」· C头文件 代码 · 共 41 行

H
41
字号
// LineData.h: interface for the CLineData class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LINEDATA_H__C6ACEDC5_2BE5_11D6_836B_5254AB372662__INCLUDED_)
#define AFX_LINEDATA_H__C6ACEDC5_2BE5_11D6_836B_5254AB372662__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <Afxtempl.h>
#include "BaseGr.h"
class CLineData  
{
public:
	CLineData();
	virtual ~CLineData();
public:
	struct structData
	{
	double XData;
	double YData;
	};
	CArray<structData,structData&> structDataArray;
	CBaseGr::PointType ePointType;
	int LineSize;
	COLORREF LineColor;
	COLORREF PointColor;
	CString LegendName;
public:
	void AddData(double x,double y);
	void SetLegend(CString strLegend) { LegendName=strLegend;}
	void SetPointType(CBaseGr::PointType Pt=CBaseGr::CIRCLE) { ePointType = Pt; }
	void SetLineSize(int Ls=1) { LineSize = Ls;}
	void SetLineColor(COLORREF Lc=RGB(0,0,0)) { LineColor = Lc;}
	void SetPointColor(COLORREF Pc=RGB(0,0,0)) { PointColor=Pc;}
	CLineData& operator= (CLineData& LineData);
};

#endif // !defined(AFX_LINEDATA_H__C6ACEDC5_2BE5_11D6_836B_5254AB372662__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?