ZWnd.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. ===========================================================================
  3. Doom 3 GPL Source Code
  4. Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
  5. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
  6. Doom 3 Source Code is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. Doom 3 Source Code 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. You should have received a copy of the GNU General Public License
  15. along with Doom 3 Source Code. If not, see <http://www.gnu.org/licenses/>.
  16. In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code. If not, please request a copy in writing from id Software at the address below.
  17. If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
  18. ===========================================================================
  19. */
  20. #if !defined(AFX_ZWND_H__44B4BA02_781B_11D1_B53C_00AA00A410FC__INCLUDED_)
  21. #define AFX_ZWND_H__44B4BA02_781B_11D1_B53C_00AA00A410FC__INCLUDED_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif // _MSC_VER >= 1000
  25. // ZWnd.h : header file
  26. //
  27. #include "zclip.h"
  28. /////////////////////////////////////////////////////////////////////////////
  29. // CZWnd window
  30. class CZWnd : public CWnd
  31. {
  32. DECLARE_DYNCREATE(CZWnd);
  33. // Construction
  34. public:
  35. CZWnd();
  36. // Attributes
  37. public:
  38. // Operations
  39. public:
  40. // Overrides
  41. // ClassWizard generated virtual function overrides
  42. //{{AFX_VIRTUAL(CZWnd)
  43. protected:
  44. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  45. //}}AFX_VIRTUAL
  46. // Implementation
  47. public:
  48. virtual ~CZWnd();
  49. CZClip *m_pZClip;
  50. // Generated message map functions
  51. protected:
  52. HDC m_dcZ;
  53. HGLRC m_hglrcZ;
  54. //{{AFX_MSG(CZWnd)
  55. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  56. afx_msg void OnDestroy();
  57. afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
  58. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  59. afx_msg void OnMButtonDown(UINT nFlags, CPoint point);
  60. afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  61. afx_msg void OnPaint();
  62. afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
  63. afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  64. afx_msg void OnSize(UINT nType, int cx, int cy);
  65. afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
  66. afx_msg void OnKillFocus(CWnd* pNewWnd);
  67. afx_msg void OnSetFocus(CWnd* pOldWnd);
  68. afx_msg void OnClose();
  69. afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  70. afx_msg void OnMButtonUp(UINT nFlags, CPoint point);
  71. afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  72. afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
  73. //}}AFX_MSG
  74. DECLARE_MESSAGE_MAP()
  75. };
  76. /////////////////////////////////////////////////////////////////////////////
  77. //{{AFX_INSERT_LOCATION}}
  78. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  79. #endif // !defined(AFX_ZWND_H__44B4BA02_781B_11D1_B53C_00AA00A410FC__INCLUDED_)