view 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 source
1 #if !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_)
2 #define AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // ZoomControl.h : header file
8 //
9 #ifndef WM_COLINFO
10 #define WM_COLINFO WM_APP+100
11 #endif
13 /////////////////////////////////////////////////////////////////////////////
14 // ZoomControl window
16 class ZoomControl : public CWnd
17 {
18 // Construction
19 public:
20 ZoomControl();
22 // Attributes
23 public:
24 // Operations
25 public:
26 // Overrides
27 // ClassWizard generated virtual function overrides
28 //{{AFX_VIRTUAL(ZoomControl)
29 //}}AFX_VIRTUAL
31 // Implementation
32 public:
33 void setColors(const u8 *c);
34 static bool isRegistered;
35 virtual ~ZoomControl();
37 // Generated message map functions
38 protected:
39 //{{AFX_MSG(ZoomControl)
40 afx_msg void OnPaint();
41 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
42 afx_msg BOOL OnEraseBkgnd(CDC*pDC);
43 //}}AFX_MSG
44 DECLARE_MESSAGE_MAP()
45 private:
46 int selected;
47 u8 colors[3*64];
48 void registerClass();
49 };
51 /////////////////////////////////////////////////////////////////////////////
53 //{{AFX_INSERT_LOCATION}}
54 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
56 #endif // !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_)