YLGLView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // YLGLView.h : interface of the CYLGLView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_YLGLVIEW_H__250FB43A_FCEB_49F3_AF3E_B7C61B37BFB0__INCLUDED_)
  5. #define AFX_YLGLVIEW_H__250FB43A_FCEB_49F3_AF3E_B7C61B37BFB0__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CYLGLView : public CView
  10. {
  11. protected: // create from serialization only
  12. CYLGLView();
  13. DECLARE_DYNCREATE(CYLGLView)
  14. // Attributes
  15. public:
  16. CYLGLDoc* GetDocument();
  17. // Operations
  18. public:
  19. // Overrides
  20. // ClassWizard generated virtual function overrides
  21. //{{AFX_VIRTUAL(CYLGLView)
  22. public:
  23. virtual void OnDraw(CDC* pDC); // overridden to draw this view
  24. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  25. virtual void OnInitialUpdate();
  26. //}}AFX_VIRTUAL
  27. // Implementation
  28. public:
  29. virtual ~CYLGLView();
  30. #ifdef _DEBUG
  31. virtual void AssertValid() const;
  32. virtual void Dump(CDumpContext& dc) const;
  33. #endif
  34. protected:
  35. // Generated message map functions
  36. protected:
  37. //{{AFX_MSG(CYLGLView)
  38. //}}AFX_MSG
  39. DECLARE_MESSAGE_MAP()
  40. };
  41. #ifndef _DEBUG // debug version in YLGLView.cpp
  42. inline CYLGLDoc* CYLGLView::GetDocument()
  43. { return (CYLGLDoc*)m_pDocument; }
  44. #endif
  45. /////////////////////////////////////////////////////////////////////////////
  46. //{{AFX_INSERT_LOCATION}}
  47. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  48. #endif // !defined(AFX_YLGLVIEW_H__250FB43A_FCEB_49F3_AF3E_B7C61B37BFB0__INCLUDED_)