Mercurial > vba-linux
annotate 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 |
rev | line source |
---|---|
rlm@1 | 1 #if !defined(AFX_COLORBUTTON_H__DF02109B_B91C_49FD_954F_74A48B83C314__INCLUDED_) |
rlm@1 | 2 #define AFX_COLORBUTTON_H__DF02109B_B91C_49FD_954F_74A48B83C314__INCLUDED_ |
rlm@1 | 3 |
rlm@1 | 4 #if _MSC_VER > 1000 |
rlm@1 | 5 #pragma once |
rlm@1 | 6 #endif // _MSC_VER > 1000 |
rlm@1 | 7 // ColorButton.h : header file |
rlm@1 | 8 // |
rlm@1 | 9 |
rlm@1 | 10 ///////////////////////////////////////////////////////////////////////////// |
rlm@1 | 11 // ColorButton window |
rlm@1 | 12 |
rlm@1 | 13 class ColorButton : public CButton |
rlm@1 | 14 { |
rlm@1 | 15 // Construction |
rlm@1 | 16 public: |
rlm@1 | 17 ColorButton(); |
rlm@1 | 18 |
rlm@1 | 19 // Attributes |
rlm@1 | 20 public: |
rlm@1 | 21 // Operations |
rlm@1 | 22 static bool isRegistered; |
rlm@1 | 23 public: |
rlm@1 | 24 void PreSubclassWindow(); |
rlm@1 | 25 void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct); |
rlm@1 | 26 |
rlm@1 | 27 // Overrides |
rlm@1 | 28 // ClassWizard generated virtual function overrides |
rlm@1 | 29 //{{AFX_VIRTUAL(ColorButton) |
rlm@1 | 30 //}}AFX_VIRTUAL |
rlm@1 | 31 |
rlm@1 | 32 // Implementation |
rlm@1 | 33 public: |
rlm@1 | 34 void setColor(u16 c); |
rlm@1 | 35 u16 color; |
rlm@1 | 36 virtual ~ColorButton(); |
rlm@1 | 37 |
rlm@1 | 38 void registerClass(); |
rlm@1 | 39 |
rlm@1 | 40 // Generated message map functions |
rlm@1 | 41 protected: |
rlm@1 | 42 //{{AFX_MSG(ColorButton) |
rlm@1 | 43 // NOTE - the ClassWizard will add and remove member functions here. |
rlm@1 | 44 //}}AFX_MSG |
rlm@1 | 45 |
rlm@1 | 46 DECLARE_MESSAGE_MAP() |
rlm@1 | 47 }; |
rlm@1 | 48 |
rlm@1 | 49 ///////////////////////////////////////////////////////////////////////////// |
rlm@1 | 50 |
rlm@1 | 51 //{{AFX_INSERT_LOCATION}} |
rlm@1 | 52 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. |
rlm@1 | 53 |
rlm@1 | 54 #endif // !defined(AFX_COLORBUTTON_H__DF02109B_B91C_49FD_954F_74A48B83C314__INCLUDED_) |