www.pudn.com > wendu.rar > Temperature.h
// Temperature.h: interface for the CTemperature class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TEMPERATURE_H__D33B63BA_F722_484C_9193_1E68494F3F2B__INCLUDED_)
#define AFX_TEMPERATURE_H__D33B63BA_F722_484C_9193_1E68494F3F2B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CTemperature : public CStatic
{
public:
CTemperature();
virtual ~CTemperature();
private:
void DrawBackground(CDC *pDC);
void DrawFrame(CDC *pDC);
CFont m_SmallFont;
COLORREF clrBar;
COLORREF clrText;
CRect temprect;
double ValueBound;
int Subscale;
int Scale;
double CurveLength;
double CurveEndPoint_Y;
double CurveEndPoint_X;
double CurveStartPoint_Y;
double CurveStartPoint_X;
double R;
double RadiusCenterPoint_Y;
double RadiusCenterPoint_X;
double RadiusEndPoint_Y;
double RadiusEndPoint_X;
double RadiusStartPoint_Y;
double RadiusStartPoint_X;
double Point2_Y;
double Point2_X;
double Point1_Y;
double Point1_X;
CBitmap *m_pBitmapOldBackground ;
CBitmap m_pBitmapBackground ;
CDC m_dcBackground;
private:
// ¹Ø¼ü´úÂë
CRITICAL_SECTION g_csData;
protected:
//{{AFX_MSG(CTemperature)
afx_msg void OnPaint();
//}}AFX_MSG
};
#endif // !defined(AFX_TEMPERATURE_H__D33B63BA_F722_484C_9193_1E68494F3F2B__INCLUDED_)