Mercurial > vba-clojure
diff src/win32/ColorButton.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/ColorButton.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,54 @@ 1.4 +#if !defined(AFX_COLORBUTTON_H__DF02109B_B91C_49FD_954F_74A48B83C314__INCLUDED_) 1.5 +#define AFX_COLORBUTTON_H__DF02109B_B91C_49FD_954F_74A48B83C314__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// ColorButton.h : header file 1.11 +// 1.12 + 1.13 +///////////////////////////////////////////////////////////////////////////// 1.14 +// ColorButton window 1.15 + 1.16 +class ColorButton : public CButton 1.17 +{ 1.18 + // Construction 1.19 +public: 1.20 + ColorButton(); 1.21 + 1.22 + // Attributes 1.23 +public: 1.24 + // Operations 1.25 + static bool isRegistered; 1.26 +public: 1.27 + void PreSubclassWindow(); 1.28 + void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); 1.29 + 1.30 + // Overrides 1.31 + // ClassWizard generated virtual function overrides 1.32 + //{{AFX_VIRTUAL(ColorButton) 1.33 + //}}AFX_VIRTUAL 1.34 + 1.35 + // Implementation 1.36 +public: 1.37 + void setColor(u16 c); 1.38 + u16 color; 1.39 + virtual ~ColorButton(); 1.40 + 1.41 + void registerClass(); 1.42 + 1.43 + // Generated message map functions 1.44 +protected: 1.45 + //{{AFX_MSG(ColorButton) 1.46 + // NOTE - the ClassWizard will add and remove member functions here. 1.47 + //}}AFX_MSG 1.48 + 1.49 + DECLARE_MESSAGE_MAP() 1.50 +}; 1.51 + 1.52 +///////////////////////////////////////////////////////////////////////////// 1.53 + 1.54 +//{{AFX_INSERT_LOCATION}} 1.55 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.56 + 1.57 +#endif // !defined(AFX_COLORBUTTON_H__DF02109B_B91C_49FD_954F_74A48B83C314__INCLUDED_)