view src/win32/BitmapControl.h @ 7:c0a590a394c3

ignore generated files
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:50:33 -0600
parents f9f4f1b99eed
children
line wrap: on
line source
1 #if !defined(AFX_BITMAPCONTROL_H__2434AADB_B6A5_4E43_AA16_7B65B6F7FA26__INCLUDED_)
2 #define AFX_BITMAPCONTROL_H__2434AADB_B6A5_4E43_AA16_7B65B6F7FA26__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // BitmapControl.h : header file
8 //
9 #ifndef WM_MAPINFO
10 #define WM_MAPINFO WM_APP+101
11 #endif
13 /////////////////////////////////////////////////////////////////////////////
14 // BitmapControl view
16 class BitmapControl : public CScrollView
17 {
18 public:
19 BitmapControl(); // protected constructor used by dynamic creation
20 protected:
21 DECLARE_DYNCREATE(BitmapControl)
23 // Attributes
24 public:
25 // Operations
26 public:
27 void setStretch(bool b);
28 void refresh();
29 void setSize(int w1, int h1);
30 void setData(u8 *d);
31 void setBmpInfo(BITMAPINFO *info);
32 static bool isRegistered;
34 // Overrides
35 // ClassWizard generated virtual function overrides
36 //{{AFX_VIRTUAL(BitmapControl)
37 protected:
38 virtual void OnDraw(CDC*pDC); // overridden to draw this view
39 virtual void OnInitialUpdate(); // first time after construct
40 virtual void PostNcDestroy();
41 //}}AFX_VIRTUAL
43 // Implementation
44 public:
45 bool getStretch();
46 virtual ~BitmapControl();
47 protected:
48 #ifdef _DEBUG
49 virtual void AssertValid() const;
50 virtual void Dump(CDumpContext& dc) const;
51 #endif
53 // Generated message map functions
54 //{{AFX_MSG(BitmapControl)
55 afx_msg BOOL OnEraseBkgnd(CDC*pDC);
56 afx_msg void OnSize(UINT nType, int cx, int cy);
57 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
58 //}}AFX_MSG
59 DECLARE_MESSAGE_MAP()
60 private:
61 void registerClass();
62 bool stretch;
63 u8 colors[3*64];
64 BITMAPINFO *bmpInfo;
65 u8 * data;
66 int h;
67 int w;
68 };
70 /////////////////////////////////////////////////////////////////////////////
72 //{{AFX_INSERT_LOCATION}}
73 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
75 #endif // !defined(AFX_BITMAPCONTROL_H__2434AADB_B6A5_4E43_AA16_7B65B6F7FA26__INCLUDED_)