www.pudn.com > PressMonitor_q.zip > 3DtempCtrl.h
#if !defined(AFX_3DTEMPCTRL_H__9C1F2F9F_CE53_4FFC_A4AF_3EA1D8009392__INCLUDED_)
#define AFX_3DTEMPCTRL_H__9C1F2F9F_CE53_4FFC_A4AF_3EA1D8009392__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// 3DtempCtrl.h : header file
//
#include "3DtempDiBimap.h"
/////////////////////////////////////////////////////////////////////////////
// C3DtempCtrl window
class C3DtempCtrl : public CStatic
{
// Construction
public:
C3DtempCtrl();
// Attributes
protected:
double m_Value;
bool m_bNewAngle;
C3DtempDiBimap m_WorkBitmap; // Drawing takes place in the background
UINT m_uIDBitmap; // Resource ID of the background bitmap (assumed 128x128 pixels)
COLORREF m_TipColor; // Color of the small tip
COLORREF m_DirectionColor; // Color of the part that holds the tip
COLORREF m_TailColor; // Color of the tail part of the needle
COLORREF m_ShadowColor; // Color of the shadow
bool m_ForegroudPal; // For pallette update
double m_maxValue;
double m_minValue;
// Operations
public:
void SetValue(double Value, bool bRedraw = true);
void SetRange(double maxValue,double minValue);
double GetValue() { return m_Value; }
void SetBackground(UINT uIDBitmap) { m_uIDBitmap = uIDBitmap; }
void SetTipColor(COLORREF Col) { m_TipColor = Col; }
void SetDirColor(COLORREF Col) { m_DirectionColor = Col; }
void SetTailColor(COLORREF Col) { m_TailColor = Col; }
void SetShadowColor(COLORREF Col){ m_ShadowColor = Col; }
void SizeToBitmap();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(C3DtempCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~C3DtempCtrl();
// Generated message map functions
protected:
//{{AFX_MSG(C3DtempCtrl)
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg BOOL OnQueryNewPalette();
afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_3DTEMPCTRL_H__9C1F2F9F_CE53_4FFC_A4AF_3EA1D8009392__INCLUDED_)