/* ========================================================================== * ÀÛ ¼º ÀÚ : À̼ø±Ô * ÀÛ ¼º ÀÏ : 2006.09.20 * * ³» ¿ë : ½ºÅ² ¹öư * Ãß°¡³»¿ë : * ÀÛ¾÷ÀÏ ÀÛ¾÷ÀÚ ÀÛ¾÷³»¿ë * * ÁÖÀÇ»çÇ× : *===========================================================================*/ #pragma once class cSkinComponentResource; class cSkinButtonResource; /// ½ºÅ² ¹öư class cSkinButton : public CButton { public: cSkinButton(); virtual ~cSkinButton(); /// »ý¼º BOOL Create( cSkinComponentResource* resource, CWnd* parent, UINT id ); /// üũ ¿©ºÎ ¼³Á¤ void SetChecked( bool checked ); /// üũ ¿©ºÎ ¸®ÅÏ bool IsChecked(); public: virtual void DrawItem( LPDRAWITEMSTRUCT ds ); protected: afx_msg void OnDestroy(); afx_msg BOOL OnEraseBkgnd( CDC* dc ); afx_msg void OnMouseMove( UINT flags, CPoint point ); afx_msg void OnLButtonDown( UINT flags, CPoint point ); afx_msg void OnLButtonUp( UINT flags, CPoint point ); DECLARE_MESSAGE_MAP() protected: /// ¸®¼Ò½º cSkinButtonResource* mResource; /// ¿µ¿ª CRect mRect; /// Å©±â int mWidth; int mHeight; /// ½ºÅ¸ÀÏ (0 - Ǫ½Ã, 1 - üũ ¹Ú½º) int mStyle; /// üũ ¿©ºÎ bool mChecked; }; inline void cSkinButton::SetChecked( bool checked ) { mChecked = checked; } inline bool cSkinButton::IsChecked() { return mChecked; }