| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- /*
- FinalSun/FinalAlert 2 Mission Editor
- Copyright (C) 1999-2024 Electronic Arts, Inc.
- Authored by Matthias Wagner
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
- #if !defined(AFX_TILESETBROWSERVIEW_H__3DD92021_7D37_11D4_9C87_97337B61A44A__INCLUDED_)
- #define AFX_TILESETBROWSERVIEW_H__3DD92021_7D37_11D4_9C87_97337B61A44A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // TileSetBrowserView.h : Header-Datei
- //
- /////////////////////////////////////////////////////////////////////////////
- // Ansicht CTileSetBrowserView
- class CTileSetBrowserView : public CScrollView
- {
- public:
- CTileSetBrowserView(); // Dynamische Erstellung verwendet geschützten Konstruktor
- DECLARE_DYNCREATE(CTileSetBrowserView)
- // Attribute
- public:
- // Operationen
- public:
- // Überschreibungen
- // Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
- //{{AFX_VIRTUAL(CTileSetBrowserView)
- protected:
- virtual void OnDraw(CDC* pDC); // Überschrieben zum Zeichnen dieser Ansicht
- virtual void OnInitialUpdate(); // Zum ersten Mal nach der Konstruktion
- virtual void PostNcDestroy();
- //}}AFX_VIRTUAL
- // Implementierung
- public:
- void SetOverlay(DWORD dwID);
- int m_currentOverlay;
- int GetAddedHeight(DWORD dwID);
- int m_bottom_needed;
- void DrawIt();
- LPDIRECTDRAWSURFACE4* m_lpDDS;
- void SetTileSet(DWORD dwTileSet, BOOL bOnlyRedraw=FALSE);
- DWORD GetTileID(DWORD dwTileSet, DWORD dwType);
- int m_currentTileSet;
- virtual ~CTileSetBrowserView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generierte Nachrichtenzuordnungsfunktionen
- //{{AFX_MSG(CTileSetBrowserView)
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- protected:
- int m_CurrentMode;
- LPDIRECTDRAWSURFACE4 RenderTile(DWORD dwID);
- int m_tilecount;
- int m_tile_height;
- int m_tile_width;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
- #endif // AFX_TILESETBROWSERVIEW_H__3DD92021_7D37_11D4_9C87_97337B61A44A__INCLUDED_
|