W3DViewView.cpp 2.4 KB

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