home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Freeware / Utilitare / VisualBoyAdvance-1.7.2 / src / win32 / ZoomControl.h < prev   
Encoding:
C/C++ Source or Header  |  2004-05-13  |  2.3 KB  |  79 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_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_)
  21. #define AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_
  22.  
  23. #include "..\System.h"  // Added by ClassView
  24. #if _MSC_VER > 1000
  25. #pragma once
  26. #endif // _MSC_VER > 1000
  27. // ZoomControl.h : header file
  28. //
  29. #ifndef WM_COLINFO
  30. #define WM_COLINFO WM_APP+100
  31. #endif
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // ZoomControl window
  35.  
  36. class ZoomControl : public CWnd
  37. {
  38.   // Construction
  39.  public:
  40.   ZoomControl();
  41.  
  42.   // Attributes
  43.  public:
  44.  
  45.   // Operations
  46.  public:
  47.  
  48.   // Overrides
  49.   // ClassWizard generated virtual function overrides
  50.   //{{AFX_VIRTUAL(ZoomControl)
  51.   //}}AFX_VIRTUAL
  52.  
  53.   // Implementation
  54.  public:
  55.   void setColors(const u8 *c);
  56.   static bool isRegistered;
  57.   virtual ~ZoomControl();
  58.  
  59.   // Generated message map functions
  60.  protected:
  61.   //{{AFX_MSG(ZoomControl)
  62.   afx_msg void OnPaint();
  63.   afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  64.   afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  65.   //}}AFX_MSG
  66.   DECLARE_MESSAGE_MAP()
  67.     private:
  68.   int selected;
  69.   u8 colors[3*64];
  70.   void registerClass();
  71. };
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74.  
  75. //{{AFX_INSERT_LOCATION}}
  76. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  77.  
  78. #endif // !defined(AFX_ZOOMCONTROL_H__BC193230_D2D6_4240_93AE_28C2EF2C641A__INCLUDED_)
  79.