1 Star 3 Fork 0

Jeffrey / Snake

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
testView.h 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
xinrk 提交于 2016-07-22 10:25 . init
// testView.h : interface of the CTestView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TESTVIEW_H__E0FCFCA6_9D9F_4B2D_B727_07FF1D39AC91__INCLUDED_)
#define AFX_TESTVIEW_H__E0FCFCA6_9D9F_4B2D_B727_07FF1D39AC91__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Snake.h"
#include "Food.h"
class CTestView : public CView
{
protected: // create from serialization only
CTestView();
DECLARE_DYNCREATE(CTestView)
// Attributes
public:
CTestDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestView)
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:
virtual ~CTestView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
private:
void DrawBack(CDC *pDC);
void DrawOver(CDC *pDC);
// Generated message map functions
protected:
//{{AFX_MSG(CTestView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnViewStart();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CSnake *pSnake;
CFood *pFood;
int m_nTimer;
};
#ifndef _DEBUG // debug version in testView.cpp
inline CTestDoc* CTestView::GetDocument()
{ return (CTestDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTVIEW_H__E0FCFCA6_9D9F_4B2D_B727_07FF1D39AC91__INCLUDED_)
C++
1
https://gitee.com/zhujf21st/Snake.git
git@gitee.com:zhujf21st/Snake.git
zhujf21st
Snake
Snake
master

搜索帮助