Mercurial > vba-linux
diff src/win32/ZoomControl.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/ZoomControl.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,56 @@ 1.4 +#if !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_) 1.5 +#define AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_ 1.6 + 1.7 +#if _MSC_VER > 1000 1.8 +#pragma once 1.9 +#endif // _MSC_VER > 1000 1.10 +// ZoomControl.h : header file 1.11 +// 1.12 +#ifndef WM_COLINFO 1.13 +#define WM_COLINFO WM_APP+100 1.14 +#endif 1.15 + 1.16 +///////////////////////////////////////////////////////////////////////////// 1.17 +// ZoomControl window 1.18 + 1.19 +class ZoomControl : public CWnd 1.20 +{ 1.21 + // Construction 1.22 +public: 1.23 + ZoomControl(); 1.24 + 1.25 + // Attributes 1.26 +public: 1.27 + // Operations 1.28 +public: 1.29 + // Overrides 1.30 + // ClassWizard generated virtual function overrides 1.31 + //{{AFX_VIRTUAL(ZoomControl) 1.32 + //}}AFX_VIRTUAL 1.33 + 1.34 + // Implementation 1.35 +public: 1.36 + void setColors(const u8 *c); 1.37 + static bool isRegistered; 1.38 + virtual ~ZoomControl(); 1.39 + 1.40 + // Generated message map functions 1.41 +protected: 1.42 + //{{AFX_MSG(ZoomControl) 1.43 + afx_msg void OnPaint(); 1.44 + afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 1.45 + afx_msg BOOL OnEraseBkgnd(CDC*pDC); 1.46 + //}}AFX_MSG 1.47 + DECLARE_MESSAGE_MAP() 1.48 +private: 1.49 + int selected; 1.50 + u8 colors[3*64]; 1.51 + void registerClass(); 1.52 +}; 1.53 + 1.54 +///////////////////////////////////////////////////////////////////////////// 1.55 + 1.56 +//{{AFX_INSERT_LOCATION}} 1.57 +// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 1.58 + 1.59 +#endif // !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_)