Mercurial > vba-clojure
view src/win32/OamView.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_OAMVIEW_H__E5369352_80F8_49C4_9F23_05EB6FC1345B__INCLUDED_)2 #define AFX_OAMVIEW_H__E5369352_80F8_49C4_9F23_05EB6FC1345B__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // OamView.h : header file8 //9 #include "BitmapControl.h"10 #include "ZoomControl.h"11 #include "ColorControl.h"12 #include "IUpdate.h"13 #include "ResizeDlg.h"15 /////////////////////////////////////////////////////////////////////////////16 // OamView dialog18 class OamView : public ResizeDlg, IUpdateListener19 {20 private:21 BITMAPINFO bmpInfo;22 u8 * data;23 int w;24 int h;25 int number;26 bool autoUpdate;27 BitmapControl oamView;28 ZoomControl oamZoom;29 ColorControl color;31 // Construction32 public:33 void updateScrollInfo();34 afx_msg LRESULT OnColInfo(WPARAM wParam, LPARAM lParam);35 afx_msg LRESULT OnMapInfo(WPARAM wParam, LPARAM lParam);36 void savePNG(const char *name);37 void saveBMP(const char *name);38 void render();39 void setAttributes(u16 a0, u16 a1, u16 a2);40 void paint();41 ~OamView();42 OamView(CWnd*pParent = NULL); // standard constructor44 virtual void update();45 // Dialog Data46 //{{AFX_DATA(OamView)47 enum { IDD = IDD_OAM_VIEW };48 CEdit m_sprite;49 BOOL m_stretch;50 //}}AFX_DATA52 // Overrides53 // ClassWizard generated virtual function overrides54 //{{AFX_VIRTUAL(OamView)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(OamView)64 afx_msg void OnSave();65 virtual BOOL OnInitDialog();66 afx_msg void OnStretch();67 afx_msg void OnAutoUpdate();68 afx_msg void OnChangeSprite();69 afx_msg void OnClose();70 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar*pScrollBar);71 //}}AFX_MSG72 DECLARE_MESSAGE_MAP()73 };75 //{{AFX_INSERT_LOCATION}}76 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.78 #endif // !defined(AFX_OAMVIEW_H__E5369352_80F8_49C4_9F23_05EB6FC1345B__INCLUDED_)