⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hanview.h

📁 俄罗斯方快的vc++程序设计
💻 H
字号:
// HanView.h : interface of the CHanView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HANVIEW_H__D9158F8D_A72F_11D8_8643_50781C4445F1__INCLUDED_)
#define AFX_HANVIEW_H__D9158F8D_A72F_11D8_8643_50781C4445F1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CHanView : public CView
{
protected: // create from serialization only
	CHanView();
	DECLARE_DYNCREATE(CHanView)

// Attributes
public:
	CHanDoc* GetDocument();

// Operations
public:
     int   y;                 //m_tu[x][y]x<30,
     int   x;                 //m_tu[x][y]  -4<y<6
     int   m_sudu;            //速度变量
     int   m_tu[39][19];      //方格
     int   m;                 //定时器变量
     int   n;                 //键盘变量
   CRect   m_rcetsudu;      //表示速度的距阵
   CRect   m_rectfen;       //表示得分的距阵
     int   defen;             //得分变量
   CRect   m_rectyouxi;     //游戏区的距阵
     int   pandiantuxing;    //判定出现方块
                           

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHanView)
	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 ~CHanView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHanView)
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnStart();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnOne();
	afx_msg void OnTwo();
	afx_msg void OnThere();
	afx_msg void OnFour();
	afx_msg void OnFive();
	afx_msg void OnSix();
	afx_msg void OnSeven();
	afx_msg void OnEight();
	afx_msg void OnNine();
	afx_msg void OnTen();
	afx_msg void OnBreak();
	afx_msg void OnBegin();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in HanView.cpp
inline CHanDoc* CHanView::GetDocument()
   { return (CHanDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HANVIEW_H__D9158F8D_A72F_11D8_8643_50781C4445F1__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -