// 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 }