#pragma once // m_MyImgBtn class CMyBottom : public CMFCButton { DECLARE_DYNAMIC(CMyBottom) public: CMyBottom(); virtual ~CMyBottom(); void SetButtonStyle(CString Tooltip); void SetFontStyle(); void Refreash(); virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); void SetDownColor(COLORREF color); void SetUpColor(COLORREF color); void SetTextColor(COLORREF color); protected: DECLARE_MESSAGE_MAP() private: CFont m_font; //三种颜色分别为文字,Button Down的背景颜色,Button Up的背景颜色 COLORREF m_TextColor; COLORREF m_DownColor; COLORREF m_UpColor; };