#pragma once #include class MyButton : public CButton { public: MyButton(); void SetButtonColor(COLORREF color); public: DECLARE_MESSAGE_MAP() afx_msg HBRUSH CtlColor(CDC* /*pDC*/, UINT /*nCtlColor*/); private: COLORREF m_color; public: };