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

📄 handtetrisview.h

📁 一个wince操作系统下面的俄罗斯方块的小游戏
💻 H
字号:
// HandTetrisView.h : interface of the CHandTetrisView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HANDTETRISVIEW_H__A20577D0_F70B_4222_BB4C_3B73D2004823__INCLUDED_)
#define AFX_HANDTETRISVIEW_H__A20577D0_F70B_4222_BB4C_3B73D2004823__INCLUDED_

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

#include "Game.h"
#include "SetupDlg.h"

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

// Attributes
public:
	CHandTetrisDoc* GetDocument();

	void Initial();
	CGame Game;
	BOOL m_bMusic;
	BOOL m_bStart;
	BOOL m_bPause;
	CDC* m_pMemDC;		//内存DC
	CDC* m_pInitialMemDC;	//
	CBitmap* m_pBitmap;		//存放上一次移动时的外观
	CBitmap* m_pInitialBitmap;	//存放游戏未开始时的外观
	CRect GameRect;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHandTetrisView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CHandTetrisView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHandTetrisView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnGameStart();
	afx_msg void OnGamePause();
	afx_msg void OnGameSetup();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in HandTetrisView.cpp
inline CHandTetrisDoc* CHandTetrisView::GetDocument()
   { return (CHandTetrisDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_HANDTETRISVIEW_H__A20577D0_F70B_4222_BB4C_3B73D2004823__INCLUDED_)

⌨️ 快捷键说明

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