ViewObjects.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_VIEWOBJECTS_H__360F4320_9B82_11D3_B63B_EC44EDA1D441__INCLUDED_)
  17. #define AFX_VIEWOBJECTS_H__360F4320_9B82_11D3_B63B_EC44EDA1D441__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // ViewObjects.h : Header-Datei
  22. //
  23. #include <afxcview.h>
  24. /////////////////////////////////////////////////////////////////////////////
  25. // Ansicht CViewObjects
  26. class CViewObjects : public CTreeView
  27. {
  28. protected:
  29. CViewObjects(); // Dynamische Erstellung verwendet geschützten Konstruktor
  30. DECLARE_DYNCREATE(CViewObjects)
  31. // Attribute
  32. public:
  33. // Operationen
  34. public:
  35. CTreeCtrl* tree;
  36. BOOL m_ready;
  37. void UpdateDialog();
  38. // Überschreibungen
  39. // Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
  40. //{{AFX_VIRTUAL(CViewObjects)
  41. public:
  42. virtual void OnInitialUpdate();
  43. protected:
  44. virtual void OnDraw(CDC* pDC); // Überschrieben zum Zeichnen dieser Ansicht
  45. //}}AFX_VIRTUAL
  46. // Implementierung
  47. protected:
  48. virtual ~CViewObjects();
  49. #ifdef _DEBUG
  50. virtual void AssertValid() const;
  51. virtual void Dump(CDumpContext& dc) const;
  52. #endif
  53. // Generierte Nachrichtenzuordnungsfunktionen
  54. protected:
  55. //{{AFX_MSG(CViewObjects)
  56. afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  57. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  58. afx_msg void OnKeydown(NMHDR* pNMHDR, LRESULT* pResult);
  59. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. private:
  63. void HandleBrushSize(int iTile);
  64. };
  65. /////////////////////////////////////////////////////////////////////////////
  66. //{{AFX_INSERT_LOCATION}}
  67. // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
  68. #endif // AFX_VIEWOBJECTS_H__360F4320_9B82_11D3_B63B_EC44EDA1D441__INCLUDED_