Mercurial > vba-clojure
view src/win32/GBACheatsDlg.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_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)2 #define AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_4 #if _MSC_VER > 10005 #pragma once6 #endif // _MSC_VER > 10007 // GBACheatsDlg.h : header file8 //10 /////////////////////////////////////////////////////////////////////////////11 // GBACheatSearch dialog13 struct WinCheatsData14 {15 u32 addr;16 char address[9];17 char oldValue[12];18 char newValue[12];19 };21 class GBACheatSearch : public CDialog22 {23 // Construction24 public:25 afx_msg void OnSizeType(UINT id);26 afx_msg void OnNumberType(UINT id);27 afx_msg void OnSearchType(UINT id);28 afx_msg void OnValueType(UINT id);29 void addChange(int index, u32 address, u32 oldValue, u32 newValue);30 GBACheatSearch(CWnd*pParent = NULL); // standard constructor31 ~GBACheatSearch();33 // Dialog Data34 //{{AFX_DATA(GBACheatSearch)35 enum { IDD = IDD_CHEATS };36 CEdit m_value;37 CListCtrl m_list;38 int valueType;39 int sizeType;40 int searchType;41 int numberType;42 BOOL updateValues;43 //}}AFX_DATA45 // Overrides46 // ClassWizard generated virtual function overrides47 //{{AFX_VIRTUAL(GBACheatSearch)48 protected:49 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support50 //}}AFX_VIRTUAL52 // Implementation53 protected:54 // Generated message map functions55 //{{AFX_MSG(GBACheatSearch)56 afx_msg void OnOk();57 afx_msg void OnStart();58 afx_msg void OnSearch();59 afx_msg void OnAddCheat();60 afx_msg void OnUpdate();61 afx_msg void OnGetdispinfoCheatList(NMHDR*pNMHDR, LRESULT*pResult);62 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);63 virtual BOOL OnInitDialog();64 //}}AFX_MSG65 DECLARE_MESSAGE_MAP()66 private:67 void addChanges(bool showMsgs);68 WinCheatsData *data;69 public:70 afx_msg void OnClose();71 afx_msg void OnBnClickedCheatrefreshbutton();72 };74 /////////////////////////////////////////////////////////////////////////////75 // AddCheat dialog77 class AddCheat : public CDialog78 {79 // Construction80 public:81 bool addCheat();82 afx_msg void OnSizeType(UINT id);83 afx_msg void OnNumberType(UINT id);84 AddCheat(u32 address, CWnd*pParent = NULL); // standard constructor86 // Dialog Data87 //{{AFX_DATA(AddCheat)88 enum { IDD = IDD_ADD_CHEAT };89 CEdit m_value;90 CEdit m_desc;91 CEdit m_address;92 int sizeType;93 int numberType;94 //}}AFX_DATA96 // Overrides97 // ClassWizard generated virtual function overrides98 //{{AFX_VIRTUAL(AddCheat)99 protected:100 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support101 //}}AFX_VIRTUAL103 // Implementation104 protected:105 u32 address;107 // Generated message map functions108 //{{AFX_MSG(AddCheat)109 afx_msg void OnOk();110 afx_msg void OnCancel();111 virtual BOOL OnInitDialog();112 //}}AFX_MSG113 DECLARE_MESSAGE_MAP()114 };115 /////////////////////////////////////////////////////////////////////////////116 // GBACheatList dialog118 class GBACheatList : public CDialog119 {120 // Construction121 public:122 void refresh();123 GBACheatList(CWnd*pParent = NULL); // standard constructor125 // Dialog Data126 //{{AFX_DATA(GBACheatList)127 enum { IDD = IDD_CHEAT_LIST };128 CButton m_restore;129 CListCtrl m_list;130 //}}AFX_DATA132 // Overrides133 // ClassWizard generated virtual function overrides134 //{{AFX_VIRTUAL(GBACheatList)135 protected:136 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support137 //}}AFX_VIRTUAL139 // Implementation140 protected:141 bool duringRefresh;142 bool restoreValues;144 // Generated message map functions145 //{{AFX_MSG(GBACheatList)146 afx_msg void OnAddCheat();147 afx_msg void OnAddCode();148 afx_msg void OnAddCodebreaker();149 afx_msg void OnAddGameshark();150 afx_msg void OnEnable();151 afx_msg void OnRemove();152 afx_msg void OnRemoveAll();153 afx_msg void OnRestore();154 afx_msg void OnOk();155 afx_msg void OnItemchangedCheatList(NMHDR*pNMHDR, LRESULT*pResult);156 virtual BOOL OnInitDialog();157 //}}AFX_MSG158 DECLARE_MESSAGE_MAP()159 };160 /////////////////////////////////////////////////////////////////////////////161 // AddGSACode dialog163 class AddGSACode : public CDialog164 {165 // Construction166 public:167 AddGSACode(CWnd*pParent = NULL); // standard constructor169 // Dialog Data170 //{{AFX_DATA(AddGSACode)171 enum { IDD = IDD_ADD_CHEAT_DLG };172 CEdit m_desc;173 CEdit m_code;174 //}}AFX_DATA176 // Overrides177 // ClassWizard generated virtual function overrides178 //{{AFX_VIRTUAL(AddGSACode)179 protected:180 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support181 //}}AFX_VIRTUAL183 // Implementation184 protected:185 // Generated message map functions186 //{{AFX_MSG(AddGSACode)187 afx_msg void OnOk();188 afx_msg void OnCancel();189 virtual BOOL OnInitDialog();190 //}}AFX_MSG191 DECLARE_MESSAGE_MAP()192 };194 /////////////////////////////////////////////////////////////////////////////195 // AddCBACode dialog197 class AddCBACode : public CDialog198 {199 // Construction200 public:201 AddCBACode(CWnd*pParent = NULL); // standard constructor203 // Dialog Data204 //{{AFX_DATA(AddCBACode)205 enum { IDD = IDD_ADD_CHEAT_DLG };206 CEdit m_desc;207 CEdit m_code;208 //}}AFX_DATA210 // Overrides211 // ClassWizard generated virtual function overrides212 //{{AFX_VIRTUAL(AddCBACode)213 protected:214 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support215 //}}AFX_VIRTUAL217 // Implementation218 protected:219 // Generated message map functions220 //{{AFX_MSG(AddCBACode)221 afx_msg void OnOk();222 afx_msg void OnCancel();223 virtual BOOL OnInitDialog();224 //}}AFX_MSG225 DECLARE_MESSAGE_MAP()226 };228 /////////////////////////////////////////////////////////////////////////////229 // AddCheatCode dialog231 class AddCheatCode : public CDialog232 {233 // Construction234 public:235 AddCheatCode(CWnd*pParent = NULL); // standard constructor237 // Dialog Data238 //{{AFX_DATA(AddCheatCode)239 enum { IDD = IDD_ADD_CHEAT_DLG };240 CEdit m_desc;241 CEdit m_code;242 //}}AFX_DATA244 // Overrides245 // ClassWizard generated virtual function overrides246 //{{AFX_VIRTUAL(AddCheatCode)247 protected:248 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support249 //}}AFX_VIRTUAL251 // Implementation252 protected:253 // Generated message map functions254 //{{AFX_MSG(AddCheatCode)255 afx_msg void OnOk();256 afx_msg void OnCancel();257 virtual BOOL OnInitDialog();258 //}}AFX_MSG259 DECLARE_MESSAGE_MAP()260 };261 //{{AFX_INSERT_LOCATION}}262 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.264 #endif // !defined(AFX_GBACHEATS_H__FC31D47D_52C8_42B2_95C7_7C3FD09316A4__INCLUDED_)