home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / MemoryViewerAddressSize.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.4 KB  |  76 lines

  1. // -*- C++ -*-
  2. // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
  3. // Copyright (C) 1999-2003 Forgotten
  4. // Copyright (C) 2004 Forgotten and the VBA development team
  5.  
  6. // This program is free software; you can redistribute it and/or modify
  7. // it under the terms of the GNU General Public License as published by
  8. // the Free Software Foundation; either version 2, or(at your option)
  9. // any later version.
  10. //
  11. // This program is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. // GNU General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU General Public License
  17. // along with this program; if not, write to the Free Software Foundation,
  18. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  19.  
  20. #if !defined(AFX_MEMORYVIEWERADDRESSSIZE_H__04605262_2B1D_4EED_A467_B6C56AC2CACD__INCLUDED_)
  21. #define AFX_MEMORYVIEWERADDRESSSIZE_H__04605262_2B1D_4EED_A467_B6C56AC2CACD__INCLUDED_
  22.  
  23. #include "..\System.h"  // Added by ClassView
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif // _MSC_VER > 1000
  27. // MemoryViewerAddressSize.h : header file
  28. //
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // MemoryViewerAddressSize dialog
  32.  
  33. class MemoryViewerAddressSize : public CDialog
  34. {
  35.   u32 address;
  36.   int size;
  37.   // Construction
  38.  public:
  39.   int getSize();
  40.   u32 getAddress();
  41.   void setSize(int s);
  42.   void setAddress(u32 a);
  43.   MemoryViewerAddressSize(u32 a=0xffffff, int s=-1, CWnd* pParent = NULL);   // standard constructor
  44.  
  45.   // Dialog Data
  46.   //{{AFX_DATA(MemoryViewerAddressSize)
  47.   enum { IDD = IDD_ADDR_SIZE };
  48.   CEdit  m_size;
  49.   CEdit  m_address;
  50.   //}}AFX_DATA
  51.  
  52.  
  53.   // Overrides
  54.   // ClassWizard generated virtual function overrides
  55.   //{{AFX_VIRTUAL(MemoryViewerAddressSize)
  56.  protected:
  57.   virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  58.   //}}AFX_VIRTUAL
  59.  
  60.   // Implementation
  61.  protected:
  62.  
  63.   // Generated message map functions
  64.   //{{AFX_MSG(MemoryViewerAddressSize)
  65.   virtual BOOL OnInitDialog();
  66.   afx_msg void OnOk();
  67.   afx_msg void OnCancel();
  68.   //}}AFX_MSG
  69.   DECLARE_MESSAGE_MAP()
  70.     };
  71.  
  72.     //{{AFX_INSERT_LOCATION}}
  73.     // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74.  
  75. #endif // !defined(AFX_MEMORYVIEWERADDRESSSIZE_H__04605262_2B1D_4EED_A467_B6C56AC2CACD__INCLUDED_)
  76.