EZSnakeDemoView.cpp
上传用户:cqzhuye
上传日期:2007-01-01
资源大小:72k
文件大小:2k
- // EZSnakeDemoView.cpp : implementation of the CEZSnakeDemoView class
- //
- #include "stdafx.h"
- #include "EZSnakeDemo.h"
- #include "EZSnakeDemoDoc.h"
- #include "EZSnakeDemoView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CEZSnakeDemoView
- IMPLEMENT_DYNCREATE(CEZSnakeDemoView, CView)
- BEGIN_MESSAGE_MAP(CEZSnakeDemoView, CView)
- //{{AFX_MSG_MAP(CEZSnakeDemoView)
- // NOTE - the ClassWizard will add and remove mapping macros here.
- // DO NOT EDIT what you see in these blocks of generated code!
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CEZSnakeDemoView construction/destruction
- CEZSnakeDemoView::CEZSnakeDemoView()
- {
- // TODO: add construction code here
- }
- CEZSnakeDemoView::~CEZSnakeDemoView()
- {
- }
- BOOL CEZSnakeDemoView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CEZSnakeDemoView drawing
- void CEZSnakeDemoView::OnDraw(CDC* pDC)
- {
- CEZSnakeDemoDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CEZSnakeDemoView diagnostics
- #ifdef _DEBUG
- void CEZSnakeDemoView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CEZSnakeDemoView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CEZSnakeDemoDoc* CEZSnakeDemoView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEZSnakeDemoDoc)));
- return (CEZSnakeDemoDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CEZSnakeDemoView message handlers