Mercurial > vba-clojure
view src/win32/PaletteView.h @ 5:8fe0c57e53d2
concentrating on lua first
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:39:40 -0600 |
parents | f9f4f1b99eed |
children |
line wrap: on
line source
1 #if !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)2 #define AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // PaletteView.h : header file9 //11 #include "IUpdate.h"12 #include "resource.h"13 #include "ResizeDlg.h"14 #include "ColorControl.h"15 #include "PaletteViewControl.h"17 class GBAPaletteViewControl : public PaletteViewControl18 {19 public:20 virtual void updatePalette();21 };23 /////////////////////////////////////////////////////////////////////////////24 // PaletteView dialog26 class PaletteView : public ResizeDlg, IUpdateListener27 {28 private:29 GBAPaletteViewControl paletteView;30 GBAPaletteViewControl paletteViewOBJ;31 ColorControl colorControl;32 bool autoUpdate;33 // Construction34 public:35 void save(int which);36 PaletteView(CWnd*pParent = NULL); // standard constructor37 ~PaletteView();38 afx_msg LRESULT OnPalInfo(WPARAM wParam, LPARAM lParam);40 // Dialog Data41 //{{AFX_DATA(PaletteView)42 enum { IDD = IDD_PALETTE_VIEW };43 // NOTE: the ClassWizard will add data members here44 //}}AFX_DATA46 // Overrides47 // ClassWizard generated virtual function overrides48 //{{AFX_VIRTUAL(PaletteView)49 protected:50 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support51 virtual void PostNcDestroy();52 //}}AFX_VIRTUAL54 virtual void update();56 // Implementation57 protected:58 // Generated message map functions59 //{{AFX_MSG(PaletteView)60 virtual BOOL OnInitDialog();61 afx_msg void OnSaveBg();62 afx_msg void OnSaveObj();63 afx_msg void OnRefresh2();64 afx_msg void OnAutoUpdate();65 afx_msg void OnClose();66 //}}AFX_MSG67 DECLARE_MESSAGE_MAP()68 };70 //{{AFX_INSERT_LOCATION}}71 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.73 #endif // !defined(AFX_PALETTEVIEW1_H__0873E3FF_9486_4B2C_8EF0_59C3B4F47162__INCLUDED_)