DockableForm.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. ** Command & Conquer Renegade(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_DOCKABLEFORMCLASS_H__53843321_66CC_11D2_8DDF_00104B6FD9E3__INCLUDED_)
  19. #define AFX_DOCKABLEFORMCLASS_H__53843321_66CC_11D2_8DDF_00104B6FD9E3__INCLUDED_
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif // _MSC_VER >= 1000
  23. // DockableFormClass.h : header file
  24. //
  25. #ifndef __AFXEXT_H__
  26. #include <afxext.h>
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. //
  30. // DockableFormClass form view
  31. //
  32. class DockableFormClass : public CWnd
  33. {
  34. public:
  35. DockableFormClass (UINT nIDTemplate);
  36. virtual ~DockableFormClass ();
  37. // Attributes
  38. public:
  39. // Operations
  40. public:
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(DockableFormClass)
  44. protected:
  45. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  46. //}}AFX_VIRTUAL
  47. // Implementation
  48. protected:
  49. // Generated message map functions
  50. //{{AFX_MSG(DockableFormClass)
  51. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. protected:
  55. ////////////////////////////////////////////////////////////////
  56. //
  57. // Protected methods
  58. //
  59. BOOL Create(LPCTSTR /*lpszClassName*/, LPCTSTR /*lpszWindowName*/,
  60. DWORD dwRequestedStyle, const RECT& rect, CWnd* pParentWnd, UINT nID,
  61. CCreateContext* pContext);
  62. public:
  63. ////////////////////////////////////////////////////////////////
  64. //
  65. // Public Methods
  66. //
  67. BOOL Create (CWnd *pCParentWnd, UINT uiID) { return Create (NULL, NULL, WS_CHILD | WS_VISIBLE, CRect (0, 0, 100, 100), pCParentWnd, uiID, NULL); }
  68. virtual void HandleInitDialog (void) {}
  69. virtual bool Apply_Changes (void) { return true; }
  70. virtual void Discard_Changes (void) {}
  71. //
  72. // Inline accessors
  73. //
  74. const CRect & Get_Form_Rect (void) const
  75. { return m_rectForm; }
  76. private:
  77. ////////////////////////////////////////////////////////////////
  78. //
  79. // Private member data
  80. //
  81. UINT m_uiTemplateID;
  82. CRect m_rectForm;
  83. };
  84. /////////////////////////////////////////////////////////////////////////////
  85. //{{AFX_INSERT_LOCATION}}
  86. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  87. #endif // !defined(AFX_DOCKABLEFORMCLASS_H__53843321_66CC_11D2_8DDF_00104B6FD9E3__INCLUDED_)