ZView.cpp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. // ZView.cpp : implementation file
  19. //
  20. #include "stdafx.h"
  21. #include "Radiant.h"
  22. #include "ZView.h"
  23. #ifdef _DEBUG
  24. #define new DEBUG_NEW
  25. #undef THIS_FILE
  26. static char THIS_FILE[] = __FILE__;
  27. #endif
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CZView
  30. IMPLEMENT_DYNCREATE(CZView, CView)
  31. CZView::CZView()
  32. {
  33. }
  34. CZView::~CZView()
  35. {
  36. }
  37. BEGIN_MESSAGE_MAP(CZView, CView)
  38. //{{AFX_MSG_MAP(CZView)
  39. ON_WM_CREATE()
  40. ON_WM_KEYDOWN()
  41. ON_WM_SIZE()
  42. ON_WM_DESTROY()
  43. ON_WM_LBUTTONUP()
  44. ON_WM_LBUTTONDOWN()
  45. ON_WM_RBUTTONUP()
  46. ON_WM_RBUTTONDOWN()
  47. ON_WM_MOUSEMOVE()
  48. ON_WM_GETMINMAXINFO()
  49. //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CZView drawing
  53. void CZView::OnDraw(CDC* pDC)
  54. {
  55. CDocument* pDoc = GetDocument();
  56. // TODO: add draw code here
  57. }
  58. /////////////////////////////////////////////////////////////////////////////
  59. // CZView diagnostics
  60. #ifdef _DEBUG
  61. void CZView::AssertValid() const
  62. {
  63. CView::AssertValid();
  64. }
  65. void CZView::Dump(CDumpContext& dc) const
  66. {
  67. CView::Dump(dc);
  68. }
  69. #endif //_DEBUG
  70. /////////////////////////////////////////////////////////////////////////////
  71. // CZView message handlers
  72. int CZView::OnCreate(LPCREATESTRUCT lpCreateStruct)
  73. {
  74. if (CView::OnCreate(lpCreateStruct) == -1)
  75. return -1;
  76. return 0;
  77. }
  78. void CZView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
  79. {
  80. // TODO: Add your message handler code here and/or call default
  81. CView::OnKeyDown(nChar, nRepCnt, nFlags);
  82. }
  83. void CZView::OnSize(UINT nType, int cx, int cy)
  84. {
  85. CView::OnSize(nType, cx, cy);
  86. // TODO: Add your message handler code here
  87. }
  88. void CZView::OnDestroy()
  89. {
  90. CView::OnDestroy();
  91. // TODO: Add your message handler code here
  92. }
  93. void CZView::OnLButtonUp(UINT nFlags, CPoint point)
  94. {
  95. // TODO: Add your message handler code here and/or call default
  96. CView::OnLButtonUp(nFlags, point);
  97. }
  98. void CZView::OnLButtonDown(UINT nFlags, CPoint point)
  99. {
  100. // TODO: Add your message handler code here and/or call default
  101. CView::OnLButtonDown(nFlags, point);
  102. }
  103. void CZView::OnRButtonUp(UINT nFlags, CPoint point)
  104. {
  105. // TODO: Add your message handler code here and/or call default
  106. CView::OnRButtonUp(nFlags, point);
  107. }
  108. void CZView::OnRButtonDown(UINT nFlags, CPoint point)
  109. {
  110. // TODO: Add your message handler code here and/or call default
  111. CView::OnRButtonDown(nFlags, point);
  112. }
  113. void CZView::OnMouseMove(UINT nFlags, CPoint point)
  114. {
  115. // TODO: Add your message handler code here and/or call default
  116. CView::OnMouseMove(nFlags, point);
  117. }
  118. void CZView::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
  119. {
  120. // TODO: Add your message handler code here and/or call default
  121. CView::OnGetMinMaxInfo(lpMMI);
  122. }