WBFrameWnd.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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_WBFRAMEWND_H__83965AA4_8750_11D5_8CE0_00010297BBAC__INCLUDED_)
  19. #define AFX_WBFRAMEWND_H__83965AA4_8750_11D5_8CE0_00010297BBAC__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // WBFrameWnd.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CWBFrameWnd frame
  27. class CWBFrameWnd : public CFrameWnd
  28. {
  29. DECLARE_DYNCREATE(CWBFrameWnd)
  30. protected:
  31. CWBFrameWnd(); // protected constructor used by dynamic creation
  32. // Attributes
  33. public:
  34. // Operations
  35. public:
  36. // Overrides
  37. //{{AFX_VIRTUAL(CWBFrameWnd)
  38. public:
  39. virtual BOOL LoadFrame(UINT nIDResource,
  40. DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE,
  41. CWnd* pParentWnd = NULL,
  42. CCreateContext* pContext = NULL);
  43. // ClassWizard generated virtual function overrides
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. virtual ~CWBFrameWnd();
  48. // Generated message map functions
  49. //{{AFX_MSG(CWBFrameWnd)
  50. afx_msg void OnMove(int x, int y);
  51. //}}AFX_MSG
  52. DECLARE_MESSAGE_MAP()
  53. protected:
  54. CellSizeToolBar m_cellSizeToolBar;
  55. };
  56. class CWB3dFrameWnd : public CMainFrame
  57. {
  58. DECLARE_DYNCREATE(CWB3dFrameWnd)
  59. protected:
  60. CWB3dFrameWnd(); // protected constructor used by dynamic creation
  61. // Operations
  62. public:
  63. // Overrides
  64. virtual BOOL LoadFrame(UINT nIDResource,
  65. DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE,
  66. CWnd* pParentWnd = NULL,
  67. CCreateContext* pContext = NULL);
  68. // ClassWizard generated virtual function overrides
  69. //{{AFX_VIRTUAL(CWB3dFrameWnd)
  70. public:
  71. //}}AFX_VIRTUAL
  72. // Implementation
  73. protected:
  74. virtual ~CWB3dFrameWnd();
  75. // Generated message map functions
  76. //{{AFX_MSG(CWB3dFrameWnd)
  77. afx_msg void OnMove(int x, int y);
  78. afx_msg void OnWindowPreview1024x768();
  79. afx_msg void OnUpdateWindowPreview1024x768(CCmdUI* pCmdUI);
  80. afx_msg void OnWindowPreview640x480();
  81. afx_msg void OnUpdateWindowPreview640x480(CCmdUI* pCmdUI);
  82. afx_msg void OnWindowPreview800x600();
  83. afx_msg void OnUpdateWindowPreview800x600(CCmdUI* pCmdUI);
  84. afx_msg void OnPaint();
  85. //}}AFX_MSG
  86. DECLARE_MESSAGE_MAP()
  87. };
  88. /////////////////////////////////////////////////////////////////////////////
  89. //{{AFX_INSERT_LOCATION}}
  90. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  91. #endif // !defined(AFX_WBFRAMEWND_H__83965AA4_8750_11D5_8CE0_00010297BBAC__INCLUDED_)