NewHeightMap.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  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. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #if !defined(AFX_NEWHEIGHTMAP_H__239CD6A3_2919_11D5_8CE0_00010297BBAC__INCLUDED_)
  19. #define AFX_NEWHEIGHTMAP_H__239CD6A3_2919_11D5_8CE0_00010297BBAC__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // NewHeightMap.h : header file
  24. //
  25. #include "Lib/BaseType.h"
  26. typedef struct {
  27. Int xExtent;
  28. Int yExtent;
  29. Int initialHeight;
  30. Int borderWidth;
  31. Bool forResize; ///< If for resize, then the anchor bools are set.
  32. Bool anchorTop; ///< It can be anchor top, or anchor bottom, or neither, but not both.
  33. Bool anchorBottom;
  34. Bool anchorLeft; ///< It can be anchor left, or anchor right, or neither but not both.
  35. Bool anchorRight;
  36. } TNewHeightInfo;
  37. /////////////////////////////////////////////////////////////////////////////
  38. // CNewHeightMap dialog
  39. class CNewHeightMap : public CDialog
  40. {
  41. // Construction
  42. public:
  43. CNewHeightMap(TNewHeightInfo *hiP, const char *label, CWnd* pParent = NULL); // standard constructor
  44. void GetHeightInfo(TNewHeightInfo *hiP) {*hiP = mHeightInfo; };
  45. // Dialog Data
  46. //{{AFX_DATA(CNewHeightMap)
  47. enum { IDD = IDD_NewHeightMap };
  48. // NOTE: the ClassWizard will add data members here
  49. //}}AFX_DATA
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(CNewHeightMap)
  53. protected:
  54. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  55. virtual void OnOK();
  56. virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
  57. //}}AFX_VIRTUAL
  58. // Implementation
  59. protected:
  60. TNewHeightInfo mHeightInfo;
  61. const char *m_label;
  62. protected:
  63. Bool doAnchorButton(Int buttonID);
  64. protected:
  65. // Generated message map functions
  66. //{{AFX_MSG(CNewHeightMap)
  67. virtual BOOL OnInitDialog();
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_NEWHEIGHTMAP_H__239CD6A3_2919_11D5_8CE0_00010297BBAC__INCLUDED_)