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

📄 bar.h

📁 WINCE下的画图工具
💻 H
字号:
// Bar.h: interface for the CBar class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BAR_H__95F2C8E6_2730_11D6_80E9_5254AB372662__INCLUDED_)
#define AFX_BAR_H__95F2C8E6_2730_11D6_80E9_5254AB372662__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "BaseGr.h"

class CBar : public CBaseGr  
{
public:
	CBar();
	virtual ~CBar();
protected:
	Position	CoordinateDirection;
	Align		XFieldMode;
	Align		LegendMode;
	Align		TitleMode;
	BOOL		GraphMode;
	BOOL		WithDash;
	BOOL		Column;
protected:
	int yDeta;
	int yCoorDeta;
private:
	void Draw2DCoordinate(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy,BOOL WithDash=FALSE);
	void Draw3DCoordinate(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy,BOOL WithDash=FALSE);
	void Draw2DBarContent(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy);
	void Draw3DBarContent(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy);
	void Draw2DBar(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy);
	void Draw3DBar(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy);
public:
	void SetCoordinateDirection(Position eDir=VER) {CoordinateDirection = eDir;}
	void SetXFieldMode(Align eXField=ON) {XFieldMode = eXField;}
	void SetLegendMode(Align eLegend=BOTTOM) {LegendMode = eLegend;}
	void SetTitleMode(Align eTitle=TOP) {TitleMode = eTitle;}
	void Set3DBar(BOOL bGraphMode=FALSE) { GraphMode = bGraphMode;}
	void SetWithDash(BOOL bWithDash=FALSE) { WithDash = bWithDash;}
	void Set3DMode(BOOL bColumn=FALSE) { Column = bColumn;}
public:
	virtual void DrawBar(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy);
	virtual void DrawCoordinate(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy,BOOL WithDash=FALSE);
	virtual void DrawContent(CDC* pDC,int LeftTopx,int LeftTopy,int RightBottomx,int RightBottomy);
};

#endif // !defined(AFX_BAR_H__95F2C8E6_2730_11D6_80E9_5254AB372662__INCLUDED_)

⌨️ 快捷键说明

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