-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 @@ | |||
1 | #ifndef__COLORBUTTON_H | ||
2 | #define__COLORBUTTON_H | ||
3 | |||
4 | // ColorButton.h : header file | ||
5 | // | ||
6 | |||
7 | ///////////////////////////////////////////////////////////////////////////// | ||
8 | // CColorButton window | ||
9 | |||
10 | class CColorButton : public CButton | ||
11 | { | ||
12 | // Construction | ||
13 | public: | ||
14 | void SetColor(); | ||
15 | COLORREF SelectColor(COLORREF color); | ||
16 | CBrush m_brColor; | ||
17 | COLORREF m_Color; | ||
18 | CColorButton(); | ||
19 | |||
20 | // Attributes | ||
21 | public: | ||
22 | |||
23 | // Operations | ||
24 | public: | ||
25 | |||
26 | // Overrides | ||
27 | // ClassWizard generated virtual function overrides | ||
28 | //{{AFX_VIRTUAL(CColorButton) | ||
29 | public: | ||
30 | virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); | ||
31 | //}}AFX_VIRTUAL | ||
32 | |||
33 | // Implementation | ||
34 | public: | ||
35 | virtual ~CColorButton(); | ||
36 | |||
37 | // Generated message map functions | ||
38 | protected: | ||
39 | //{{AFX_MSG(CColorButton) | ||
40 | //}}AFX_MSG | ||
41 | |||
42 | DECLARE_MESSAGE_MAP() | ||
43 | }; | ||
44 | |||
45 | ///////////////////////////////////////////////////////////////////////////// | ||
46 | |||
47 | #endif// __COLORBUTTON_H | ||