?? bar.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 + -