Mercurial > vba-clojure
view src/win32/MapView.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_MAPVIEW_H__20F40C77_8E10_44B7_BB49_7865F73C3E75__INCLUDED_)2 #define AFX_MAPVIEW_H__20F40C77_8E10_44B7_BB49_7865F73C3E75__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // MapView.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 // MapView dialog20 class MapView : public ResizeDlg, IUpdateListener21 {22 private:23 BITMAPINFO bmpInfo;24 u8 * data;25 int frame;26 u16 control;27 int bg;28 int w;29 int h;30 BitmapControl mapView;31 ZoomControl mapViewZoom;32 ColorControl color;33 bool autoUpdate;35 // Construction36 public:37 void savePNG(const char *name);38 void saveBMP(const char *name);39 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);40 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);41 u32 GetClickAddress(int x, int y);42 u32 GetTextClickAddress(u32 base, int x, int y);43 void update();44 void enableButtons(int mode);45 void paint();46 void renderMode5();47 void renderMode4();48 void renderMode3();49 void renderMode2();50 void renderMode1();51 void renderMode0();52 void renderRotScreen(u16 control);53 void renderTextScreen(u16 control);54 MapView(CWnd*pParent = NULL); // standard constructor55 ~MapView();57 // Dialog Data58 //{{AFX_DATA(MapView)59 enum { IDD = IDD_MAP_VIEW };60 CStatic m_numcolors;61 CStatic m_mode;62 CStatic m_overflow;63 CStatic m_mosaic;64 CStatic m_priority;65 CStatic m_dim;66 CStatic m_charbase;67 CStatic m_mapbase;68 //}}AFX_DATA70 // Overrides71 // ClassWizard generated virtual function overrides72 //{{AFX_VIRTUAL(MapView)73 protected:74 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support75 virtual void PostNcDestroy();76 //}}AFX_VIRTUAL78 // Implementation79 protected:80 // Generated message map functions81 //{{AFX_MSG(MapView)82 afx_msg void OnRefresh();83 virtual BOOL OnInitDialog();84 afx_msg void OnFrame0();85 afx_msg void OnFrame1();86 afx_msg void OnBg0();87 afx_msg void OnBg1();88 afx_msg void OnBg2();89 afx_msg void OnBg3();90 afx_msg void OnStretch();91 afx_msg void OnAutoUpdate();92 afx_msg void OnClose();93 afx_msg void OnSave();94 //}}AFX_MSG95 DECLARE_MESSAGE_MAP()96 };98 //{{AFX_INSERT_LOCATION}}99 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.101 #endif // !defined(AFX_MAPVIEW_H__20F40C77_8E10_44B7_BB49_7865F73C3E75__INCLUDED_)