#if !defined(AFX_THUMBICON_H__1C8EB8F4_A964_4812_8DE4_B22433919C37__INCLUDED_) #define AFX_THUMBICON_H__1C8EB8F4_A964_4812_8DE4_B22433919C37__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // ThumbIcon.h : header file // ///////////////////////////////////////////////////////////////////////////// // CThumbIcon window class CThumbIcon : public CButton { private: CDC m_NormalDC; CDC m_DownDC; CDC m_BackgroundDC; CDC m_MemDC; CFont m_txtFont; int m_NormalID; int m_DownID; int m_ImageID; bool m_InitDC; bool m_IsSelected; bool m_IsDown; CString m_Title; COLORREF m_txtColor; bool m_ShowIcon; CSize m_BmpSize; COLORREF m_BgColor; // Construction public: CThumbIcon(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CThumbIcon) protected: virtual void PreSubclassWindow(); public: virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); //}}AFX_VIRTUAL // Implementation public: bool GetChecked(void); void SetChecked(bool bCheck); void SetButtonTitle(CString sTitle); CString GetButtonTitle(void); void ShowIcon(bool bShow); void LoadIcon(int nNormalID, int nDownID, int nImageID, COLORREF BgColor); virtual ~CThumbIcon(); // Generated message map functions protected: //{{AFX_MSG(CThumbIcon) afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnPaint(); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnKillFocus(CWnd* pNewWnd); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_THUMBICON_H__1C8EB8F4_A964_4812_8DE4_B22433919C37__INCLUDED_)