ParameterSheet.cpp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. // ParameterSheet.cpp : implementation file
  19. //
  20. #include "stdafx.h"
  21. #include "leveledit.h"
  22. #include "ParameterSheet.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // ParameterSheetClass
  30. IMPLEMENT_DYNCREATE(ParameterSheetClass, CScrollView)
  31. ParameterSheetClass::ParameterSheetClass()
  32. {
  33. }
  34. ParameterSheetClass::~ParameterSheetClass()
  35. {
  36. }
  37. BEGIN_MESSAGE_MAP(ParameterSheetClass, CScrollView)
  38. //{{AFX_MSG_MAP(ParameterSheetClass)
  39. // NOTE - the ClassWizard will add and remove mapping macros here.
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. /////////////////////////////////////////////////////////////////////////////
  43. // ParameterSheetClass drawing
  44. void ParameterSheetClass::OnInitialUpdate()
  45. {
  46. CScrollView::OnInitialUpdate();
  47. CSize sizeTotal;
  48. // TODO: calculate the total size of this view
  49. sizeTotal.cx = sizeTotal.cy = 100;
  50. SetScrollSizes(MM_TEXT, sizeTotal);
  51. }
  52. void ParameterSheetClass::OnDraw(CDC* pDC)
  53. {
  54. CDocument* pDoc = GetDocument();
  55. // TODO: add draw code here
  56. }
  57. /////////////////////////////////////////////////////////////////////////////
  58. // ParameterSheetClass diagnostics
  59. #ifdef _DEBUG
  60. void ParameterSheetClass::AssertValid() const
  61. {
  62. CScrollView::AssertValid();
  63. }
  64. void ParameterSheetClass::Dump(CDumpContext& dc) const
  65. {
  66. CScrollView::Dump(dc);
  67. }
  68. #endif //_DEBUG
  69. /////////////////////////////////////////////////////////////////////////////
  70. // ParameterSheetClass message handlers