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

📄 thermometer.h

📁 485通讯接口模块的编程应用
💻 H
字号:
#if !defined(AFX_THERMOMETER_H__54B7E09C_27E7_4339_87DB_642A0640E222__INCLUDED_)
#define AFX_THERMOMETER_H__54B7E09C_27E7_4339_87DB_642A0640E222__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CThermometer window

class CThermometer : public CStatic
{
// Construction
public:
	CThermometer();

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	void SetName(CString strName);
	void RefreshCircle();
	void CalStatus();
	void SetStatus(int iStatus);
	void SetMinValue(float fvalue);
	void SetMaxValue(float fvalue);
	void SetCurValue(float fvalue);
		

 	virtual ~CThermometer();

	// Generated message map functions
protected:
	CFont m_font;

	CFont m_fontLarge;
	CString strCurval ;  //当前值
	CString m_strName;

	CRect m_rcDraw;  //绘制颜色部分
	CRect m_rcDrawValue;
	CRect rcTopmovecircle ; 
	CRect rcCircle  ;
	CRect rcCylinder ; 
	COLORREF m_colorRed;
	COLORREF m_colorGreen;
	COLORREF m_colorYellow ; 
	COLORREF m_colorBK;

	BOOL bRed;
	BOOL btimer;
	
	
	float m_dVal;
	float m_dMax;
	float m_dMin;
	float m_dCurval ; 
	int m_iStatus;
	//{{AFX_MSG(CThermometer)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_THERMOMETER_H__54B7E09C_27E7_4339_87DB_642A0640E222__INCLUDED_)

⌨️ 快捷键说明

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