2026-10-04 00:04:20 +08:00
|
|
|
#ifndef _COLORBUTTON_H__
|
2026-09-28 15:28:50 +08:00
|
|
|
#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
|