Mercurial > vba-clojure
view src/win32/GBMapView.h @ 8:08a8e09ca414
add files required by automake
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:54:39 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #if !defined(AFX_GBMAPVIEW_H__4CD23D38_F2CD_4B95_AE76_2781591DD077__INCLUDED_)2 #define AFX_GBMAPVIEW_H__4CD23D38_F2CD_4B95_AE76_2781591DD077__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // GBMapView.h : header file9 //11 #include "BitmapControl.h"12 #include "ColorControl.h"13 #include "ZoomControl.h"14 #include "ResizeDlg.h"15 #include "IUpdate.h"17 /////////////////////////////////////////////////////////////////////////////18 // GBMapView dialog20 class GBMapView : public ResizeDlg, IUpdateListener21 {22 private:23 BITMAPINFO bmpInfo;24 u8 * data;25 int bank;26 int bg;27 int w;28 int h;29 BitmapControl mapView;30 ZoomControl mapViewZoom;31 ColorControl color;32 bool autoUpdate;33 // Construction34 public:35 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);36 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);37 u32 GetClickAddress(int x, int y);38 void update();39 void paint();40 void render();41 void savePNG(const char *name);42 void saveBMP(const char *name);43 ~GBMapView();44 GBMapView(CWnd*pParent = NULL); // standard constructor46 // Dialog Data47 //{{AFX_DATA(GBMapView)48 enum { IDD = IDD_GB_MAP_VIEW };49 // NOTE: the ClassWizard will add data members here50 //}}AFX_DATA52 // Overrides53 // ClassWizard generated virtual function overrides54 //{{AFX_VIRTUAL(GBMapView)55 protected:56 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support57 virtual void PostNcDestroy();58 //}}AFX_VIRTUAL60 // Implementation61 protected:62 // Generated message map functions63 //{{AFX_MSG(GBMapView)64 afx_msg void OnSave();65 afx_msg void OnRefresh();66 virtual BOOL OnInitDialog();67 afx_msg void OnBg0();68 afx_msg void OnBg1();69 afx_msg void OnBank0();70 afx_msg void OnBank1();71 afx_msg void OnStretch();72 afx_msg void OnAutoUpdate();73 afx_msg void OnClose();74 //}}AFX_MSG75 DECLARE_MESSAGE_MAP()76 };78 //{{AFX_INSERT_LOCATION}}79 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.81 #endif // !defined(AFX_GBMAPVIEW_H__4CD23D38_F2CD_4B95_AE76_2781591DD077__INCLUDED_)