/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2008.06.18 * ³» ¿ë : ½ºÅ² ¿øÇü °ÔÀÌÁö * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cSkinComponentResource; class cSkinRoundGaugeResource; /// ½ºÅ² ¿øÇü °ÔÀÌÁö class cSkinRoundGauge : public CStatic { public: cSkinRoundGauge(); virtual ~cSkinRoundGauge(); /// »ý¼º BOOL Create( cSkinComponentResource* resource, CWnd* parent, UINT id ); void SetAngle( float degree ); protected: afx_msg int OnCreate( LPCREATESTRUCT cs ); afx_msg BOOL OnEraseBkgnd( CDC* dc ); afx_msg void OnPaint(); DECLARE_MESSAGE_MAP() protected: /// ¸®¼Ò½º cSkinRoundGaugeResource* mResource; /// Å©±â int mWidth; int mHeight; /// °¢µµ float mAngle; /// ¸Þ¸ð¸® ºñÆ®¸Ê CBitmap mMemBitmap; }; inline void cSkinRoundGauge::SetAngle( float ang ) { if( ang < 0.0f ) mAngle = 0.0f; else if( ang > 180.0f ) mAngle = 180.0f; else mAngle = ang; }