wdview.cpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. // wdumpView.cpp : implementation of the CWdumpView class
  19. //
  20. #include "stdafx.h"
  21. #include "wdump.h"
  22. #include "wdumpDoc.h"
  23. #include "wdView.h"
  24. #ifdef _DEBUG
  25. #define new DEBUG_NEW
  26. #undef THIS_FILE
  27. static char THIS_FILE[] = __FILE__;
  28. #endif
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CWdumpView
  31. IMPLEMENT_DYNCREATE(CWdumpView, CView)
  32. BEGIN_MESSAGE_MAP(CWdumpView, CView)
  33. //{{AFX_MSG_MAP(CWdumpView)
  34. // NOTE - the ClassWizard will add and remove mapping macros here.
  35. // DO NOT EDIT what you see in these blocks of generated code!
  36. //}}AFX_MSG_MAP
  37. END_MESSAGE_MAP()
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CWdumpView construction/destruction
  40. CWdumpView::CWdumpView()
  41. {
  42. // TODO: add construction code here
  43. }
  44. CWdumpView::~CWdumpView()
  45. {
  46. }
  47. BOOL CWdumpView::PreCreateWindow(CREATESTRUCT& cs)
  48. {
  49. // TODO: Modify the Window class or styles here by modifying
  50. // the CREATESTRUCT cs
  51. return CView::PreCreateWindow(cs);
  52. }
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CWdumpView drawing
  55. void CWdumpView::OnDraw(CDC* pDC)
  56. {
  57. CWdumpDoc* pDoc = GetDocument();
  58. ASSERT_VALID(pDoc);
  59. // TODO: add draw code for native data here
  60. }
  61. /////////////////////////////////////////////////////////////////////////////
  62. // CWdumpView diagnostics
  63. #ifdef _DEBUG
  64. void CWdumpView::AssertValid() const
  65. {
  66. CView::AssertValid();
  67. }
  68. void CWdumpView::Dump(CDumpContext& dc) const
  69. {
  70. CView::Dump(dc);
  71. }
  72. CWdumpDoc* CWdumpView::GetDocument() // non-debug version is inline
  73. {
  74. ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CWdumpDoc)));
  75. return (CWdumpDoc*)m_pDocument;
  76. }
  77. #endif //_DEBUG
  78. /////////////////////////////////////////////////////////////////////////////
  79. // CWdumpView message handlers