MiniMap.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. #if !defined(AFX_MINIMAP_H__43F7CCE0_CC11_11D3_B63B_00485453E8BA__INCLUDED_)
  17. #define AFX_MINIMAP_H__43F7CCE0_CC11_11D3_B63B_00485453E8BA__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // MiniMap.h : Header file
  22. //
  23. /////////////////////////////////////////////////////////////////////////////
  24. // View CMiniMap
  25. class CMiniMap : public CView
  26. {
  27. public:
  28. CMiniMap();
  29. virtual ~CMiniMap();
  30. DECLARE_DYNCREATE(CMiniMap)
  31. // attributes
  32. public:
  33. // operations
  34. public:
  35. void DrawMinimap(BYTE** lpData, BITMAPINFO& biinfo, int& Pitch);
  36. void UpdateView();
  37. // overwriteables
  38. //{{AFX_VIRTUAL(CMiniMap)
  39. protected:
  40. virtual void OnDraw(CDC* pDC);
  41. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  42. //}}AFX_VIRTUAL
  43. // Implementierung
  44. protected:
  45. #ifdef _DEBUG
  46. virtual void AssertValid() const;
  47. virtual void Dump(CDumpContext& dc) const;
  48. #endif
  49. // generated message maps
  50. protected:
  51. //{{AFX_MSG(CMiniMap)
  52. afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
  53. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  54. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. private:
  58. float m_scale;
  59. public:
  60. afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
  61. afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
  62. };
  63. /////////////////////////////////////////////////////////////////////////////
  64. //{{AFX_INSERT_LOCATION}}
  65. #endif // AFX_MINIMAP_H__43F7CCE0_CC11_11D3_B63B_00485453E8BA__INCLUDED_