home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / ZView.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  2.8 KB  |  143 lines

  1. // ZView.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "Radiant.h"
  6. #include "ZView.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CZView
  16.  
  17. IMPLEMENT_DYNCREATE(CZView, CView)
  18.  
  19. CZView::CZView()
  20. {
  21. }
  22.  
  23. CZView::~CZView()
  24. {
  25. }
  26.  
  27.  
  28. BEGIN_MESSAGE_MAP(CZView, CView)
  29.     //{{AFX_MSG_MAP(CZView)
  30.     ON_WM_CREATE()
  31.     ON_WM_KEYDOWN()
  32.     ON_WM_SIZE()
  33.     ON_WM_DESTROY()
  34.     ON_WM_LBUTTONUP()
  35.     ON_WM_LBUTTONDOWN()
  36.     ON_WM_RBUTTONUP()
  37.     ON_WM_RBUTTONDOWN()
  38.     ON_WM_MOUSEMOVE()
  39.     ON_WM_GETMINMAXINFO()
  40.     //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CZView drawing
  45.  
  46. void CZView::OnDraw(CDC* pDC)
  47. {
  48.     CDocument* pDoc = GetDocument();
  49.     // TODO: add draw code here
  50. }
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CZView diagnostics
  54.  
  55. #ifdef _DEBUG
  56. void CZView::AssertValid() const
  57. {
  58.     CView::AssertValid();
  59. }
  60.  
  61. void CZView::Dump(CDumpContext& dc) const
  62. {
  63.     CView::Dump(dc);
  64. }
  65. #endif //_DEBUG
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68. // CZView message handlers
  69.  
  70. int CZView::OnCreate(LPCREATESTRUCT lpCreateStruct) 
  71. {
  72.     if (CView::OnCreate(lpCreateStruct) == -1)
  73.         return -1;
  74.     
  75.     
  76.     return 0;
  77. }
  78.  
  79. void CZView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) 
  80. {
  81.     // TODO: Add your message handler code here and/or call default
  82.     
  83.     CView::OnKeyDown(nChar, nRepCnt, nFlags);
  84. }
  85.  
  86. void CZView::OnSize(UINT nType, int cx, int cy) 
  87. {
  88.     CView::OnSize(nType, cx, cy);
  89.     
  90.     // TODO: Add your message handler code here
  91.     
  92. }
  93.  
  94. void CZView::OnDestroy() 
  95. {
  96.     CView::OnDestroy();
  97.     
  98.     // TODO: Add your message handler code here
  99.     
  100. }
  101.  
  102. void CZView::OnLButtonUp(UINT nFlags, CPoint point) 
  103. {
  104.     // TODO: Add your message handler code here and/or call default
  105.     
  106.     CView::OnLButtonUp(nFlags, point);
  107. }
  108.  
  109. void CZView::OnLButtonDown(UINT nFlags, CPoint point) 
  110. {
  111.     // TODO: Add your message handler code here and/or call default
  112.     
  113.     CView::OnLButtonDown(nFlags, point);
  114. }
  115.  
  116. void CZView::OnRButtonUp(UINT nFlags, CPoint point) 
  117. {
  118.     // TODO: Add your message handler code here and/or call default
  119.     
  120.     CView::OnRButtonUp(nFlags, point);
  121. }
  122.  
  123. void CZView::OnRButtonDown(UINT nFlags, CPoint point) 
  124. {
  125.     // TODO: Add your message handler code here and/or call default
  126.     
  127.     CView::OnRButtonDown(nFlags, point);
  128. }
  129.  
  130. void CZView::OnMouseMove(UINT nFlags, CPoint point) 
  131. {
  132.     // TODO: Add your message handler code here and/or call default
  133.     
  134.     CView::OnMouseMove(nFlags, point);
  135. }
  136.  
  137. void CZView::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI) 
  138. {
  139.     // TODO: Add your message handler code here and/or call default
  140.     
  141.     CView::OnGetMinMaxInfo(lpMMI);
  142. }
  143.