www.pudn.com > Snakes.rar > SnakesView.h
// SnakesView.h : interface of the CSnakesView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_SNAKESVIEW_H__FAEE3976_4C4B_4253_BAB1_D822988C6B4B__INCLUDED_)
#define AFX_SNAKESVIEW_H__FAEE3976_4C4B_4253_BAB1_D822988C6B4B__INCLUDED_
#include "BITMAP_COMMON\SnakesApp.H" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CSnakesView : public CView
{
protected: // create from serialization only
CSnakesView();
DECLARE_DYNCREATE(CSnakesView)
// Attributes
public:
CSnakesDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSnakesView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
CSnakes *m_pSnake;
bool dd;
virtual ~CSnakesView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSnakesView)
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnStart();
afx_msg void OnTCard(UINT idAction, DWORD dwActionData);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnTt();
afx_msg void OnSs();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in SnakesView.cpp
inline CSnakesDoc* CSnakesView::GetDocument()
{ return (CSnakesDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SNAKESVIEW_H__FAEE3976_4C4B_4253_BAB1_D822988C6B4B__INCLUDED_)