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

📄 numberdisplay.h

📁 利用VisualC++写的一个比较大的画电路土软件
💻 H
字号:
// NumberDisplay.h: interface for the NumberDisplay class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_NUMBERDISPLAY_H__D88F3F98_72E9_11D4_B684_F36357A7FC1C__INCLUDED_)
#define AFX_NUMBERDISPLAY_H__D88F3F98_72E9_11D4_B684_F36357A7FC1C__INCLUDED_

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

class NumberDisplay  
{
public:
	NumberDisplay();
	virtual ~NumberDisplay();
public:
	int m_zhengNum;
	LOGPEN LogPenText;         //字体颜色
	LOGPEN LogPen8;       //字体8颜色
	LOGPEN LogPenBackground;             //背景颜色
	BOOL m_Flag;
	int m_Number;          //保留小数位
	double m_date;            //将要显示得数 
	int m_Hight;           //窗口的宽和高
	int m_Width;
	CPoint m_LeftTopPoint;     //窗口的左上角坐标
	int m_HengWidth;                    //横的宽和高
	int m_HengHight;
	int m_ShuWidth;                     //竖的宽和高
	int m_ShuHight;
	int m_FontDistance;                 //字体的间距
	int m_FontToWindowDistance;         //字体边到窗口边的距离
	int m_BottomDistance;               //字体底到窗口底的距离
	int m_FontSum;                      //字体的总个数 
	int m_HengToShuDistance;            //横和竖的间锯
	int m_FontWidth;                     //字体的宽和高
	int m_FontHight;

	int m_Num;
	CPoint m_tempPoint;
	BOOL m_LFlag;
	BOOL m_BeSelected;

public:
	void SetParam( double date,CPoint point,int width,int hight,int i );
	void SetParam( double date,CPoint point,int width,int hight,int i,int j );
    void ArithPosition( double date,int width,int hight );
	void Draw( CDC * );
    void DrawNumber( int i,CDC *pDC,int j );
	void Draw0( CDC *pDC,int j );
	void Draw1( CDC *pDC,int j );
	void Draw2( CDC *pDC,int j );
	void Draw3( CDC *pDC,int j );
	void Draw4( CDC *pDC,int j );
	void Draw5( CDC *pDC,int j );
	void Draw6( CDC *pDC,int j );
	void Draw7( CDC *pDC,int j );
    void Draw8( CDC *pDC,int j );
	void Draw9( CDC *pDC,int j );
	void DrawUpHeng( CDC *pDC,CPoint point,LOGPEN );
	void DrawDownHeng( CDC *pDC,CPoint point,LOGPEN );
	void DrawMidHeng( CDC *pDC,CPoint point,LOGPEN );
	void DrawLeftUpShu( CDC *,CPoint,LOGPEN );
	void DrawLeftDownShu( CDC *,CPoint,LOGPEN );
	void DrawRightUpShu( CDC *,CPoint,LOGPEN );
	void DrawRightDownShu( CDC *,CPoint,LOGPEN );
	void DrawPoint( int j,CDC *pDC );
	void DrawDoublePoint( int j,CDC *pDC );
	void DrawBottomPicture( CDC *,int j );
	BOOL PtInWindow( CPoint point );
	void ArithDragPosition( CPoint point );

	void OnLButtonDown( UINT nFlags,CPoint point );
	void OnLButtonUp( UINT nFlags,CPoint point );
	void OnMouseMove( UINT nFlags,CPoint point );

};

#endif // !defined(AFX_NUMBERDISPLAY_H__D88F3F98_72E9_11D4_B684_F36357A7FC1C__INCLUDED_)

⌨️ 快捷键说明

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