author | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2004-07-05 01:53:09 (UTC) |
commit | 955d4e00adc9f39ab93bf21f07506eb75b013c70 (patch) (unidiff) | |
tree | 92493a2c9ac206b822e24a9e5a6f6b1589be6afb /ColorButton.h | |
download | T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.zip T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.gz T42-955d4e00adc9f39ab93bf21f07506eb75b013c70.tar.bz2 |
initial commit into svn repository
git-svn-id: http://svn.klever.net/kin/T42/trunk@1 fe716a7a-6dde-0310-88d9-d003556173a8
-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 | ||