#ifndef _COLORBUTTON_H__ #define _COLORBUTTON_H__ class CColorButton : public CButton { public: CColorButton(); void SetBackgroundColor(COLORREF color); BOOL Attach(const UINT nID, CWnd* pParent); public: //{{AFX_VIRTUAL(CColorButton) public: virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); //}}AFX_VIRTUAL public: virtual ~CColorButton(); protected: //{{AFX_MSG(CColorButton) //}}AFX_MSG DECLARE_MESSAGE_MAP() private: COLORREF m_backgroudColor; }; #endif