1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- // YLGLView.cpp : implementation of the CYLGLView class
- //
- #include "stdafx.h"
- #include "YLGL.h"
- #include "YLGLDoc.h"
- #include "YLGLView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CYLGLView
- IMPLEMENT_DYNCREATE(CYLGLView, CView)
- BEGIN_MESSAGE_MAP(CYLGLView, CView)
- //{{AFX_MSG_MAP(CYLGLView)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CYLGLView construction/destruction
- CYLGLView::CYLGLView()
- {
- // TODO: add construction code here
- }
- CYLGLView::~CYLGLView()
- {
- }
- BOOL CYLGLView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CYLGLView drawing
- void CYLGLView::OnDraw(CDC* pDC)
- {
- CYLGLDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CYLGLView diagnostics
- #ifdef _DEBUG
- void CYLGLView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CYLGLView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CYLGLDoc* CYLGLView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CYLGLDoc)));
- return (CYLGLDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CYLGLView message handlers
- void CYLGLView::OnInitialUpdate()
- {
- CView::OnInitialUpdate();
-
- // TODO: Add your specialized code here and/or call the base class
- }
|