Mercurial > vba-linux
view src/win32/BitmapControl.h @ 3:b05d00f19d80
fix some formatting
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:33:11 -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 > 10005 #pragma once6 #endif // _MSC_VER > 10007 // BitmapControl.h : header file8 //9 #ifndef WM_MAPINFO10 #define WM_MAPINFO WM_APP+10111 #endif13 /////////////////////////////////////////////////////////////////////////////14 // BitmapControl view16 class BitmapControl : public CScrollView17 {18 public:19 BitmapControl(); // protected constructor used by dynamic creation20 protected:21 DECLARE_DYNCREATE(BitmapControl)23 // Attributes24 public:25 // Operations26 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 // Overrides35 // ClassWizard generated virtual function overrides36 //{{AFX_VIRTUAL(BitmapControl)37 protected:38 virtual void OnDraw(CDC*pDC); // overridden to draw this view39 virtual void OnInitialUpdate(); // first time after construct40 virtual void PostNcDestroy();41 //}}AFX_VIRTUAL43 // Implementation44 public:45 bool getStretch();46 virtual ~BitmapControl();47 protected:48 #ifdef _DEBUG49 virtual void AssertValid() const;50 virtual void Dump(CDumpContext& dc) const;51 #endif53 // Generated message map functions54 //{{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_MSG59 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_)