-rw-r--r-- | ColorButton.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ColorButton.h b/ColorButton.h new file mode 100644 index 0000000..98e2f62 --- a/dev/null +++ b/ColorButton.h @@ -0,0 +1,47 @@ +#ifndef __COLORBUTTON_H
+#define __COLORBUTTON_H
+
+// ColorButton.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CColorButton window
+
+class CColorButton : public CButton
+{
+// Construction
+public:
+ void SetColor();
+ COLORREF SelectColor(COLORREF color);
+ CBrush m_brColor;
+ COLORREF m_Color;
+ CColorButton();
+
+// Attributes
+public:
+
+// Operations
+public:
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CColorButton)
+ public:
+ virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
+ //}}AFX_VIRTUAL
+
+// Implementation
+public:
+ virtual ~CColorButton();
+
+ // Generated message map functions
+protected:
+ //{{AFX_MSG(CColorButton)
+ //}}AFX_MSG
+
+ DECLARE_MESSAGE_MAP()
+};
+
+/////////////////////////////////////////////////////////////////////////////
+
+#endif // __COLORBUTTON_H
|