⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 grctrl.h

📁 WINCE下的画图工具
💻 H
字号:
#if !defined(AFX_GRCTRL_H__A6C954E8_5357_11D6_83A8_5254AB372662__INCLUDED_)
#define AFX_GRCTRL_H__A6C954E8_5357_11D6_83A8_5254AB372662__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// GrCtrl.h : header file
//

#include "Pie.h"
#include "Line.h"
#include "Bar.h"
#include <Afxtempl.h>
/////////////////////////////////////////////////////////////////////////////
// CGrCtrl window
#define GR_PIE 1
#define GR_BAR 2
#define GR_LINE 3

class CGrCtrl : public CStatic
{
// Construction
public:
	CGrCtrl();
	
// Attributes
public:
	int m_iType;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGrCtrl)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetXMax(int iXMax=100);
	void SetXMin(int iXMin=0);
	void SetDotSize(int iDs=3);
	void SetWithDot(BOOL bWithDot=TRUE);
	void SetPointColor(int iIndex,COLORREF Pc=RGB(0,0,0));
	void SetLineColor(int iIndex,COLORREF Lc=RGB(0,0,0));
	void SetLineSize(int iIndex,int Ls=1);
	void SetPointType(int iIndex,CBaseGr::PointType Pt=CBaseGr::CIRCLE);
	void SetLegend(int iIndex,CString szLegend);
	void AddLineData(int iIndex,double x,double y);
	void DeleteAllLines();
	void DeleteLine(int iIndex=0);
	int AddLine();
	void SetWithDash(BOOL bWithDash=TRUE);
	void Set3DBar(BOOL b3DBar=TRUE);
	void SetYName(CString szYName);
	void SetXName(CString szXName);
	void SetCutPie(BOOL bCutPie=TRUE);
	void SetPieWithText(BOOL bWithText=TRUE);
	void SetTitle(CString szTitle);
	BOOL IsFree();
	void SetYMax(int iYMax=100);
	void SetYMin(int iYMin=0);
	void SetLegend(CString Name,double Value=0.0,COLORREF FillColor=RGB(255,0,0),CBaseGr::PointType GraphMode=CBaseGr::RECTANGLE,int LineSize=1,COLORREF LineColor=RGB(0,0,0));
	void CreateObject(int iType=0);
	void ReleaseObject();
	virtual ~CGrCtrl();

	// Generated message map functions
protected:
	CLine *m_line;
	CBar *m_bar;
	CPie *m_pie;
	CPtrList m_pLineDataList;
	//{{AFX_MSG(CGrCtrl)
	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_GRCTRL_H__A6C954E8_5357_11D6_83A8_5254AB372662__INCLUDED_)

⌨️ 快捷键说明

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