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

📄 blockview.h

📁 俄罗斯方块游戏 MFC 源代码
💻 H
字号:
// blockView.h : interface of the CBlockView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BLOCKVIEW_H__7A04EEED_5E2A_11D7_80DF_000021E3C617__INCLUDED_)
#define AFX_BLOCKVIEW_H__7A04EEED_5E2A_11D7_80DF_000021E3C617__INCLUDED_

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

#include "BlockDoc.h"

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

// Attributes
public:
	CBlockDoc* GetDocument();

// Operations
public:

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

// Implementation
public:
	virtual ~CBlockView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
public:
	void GoFastDown();
	void ChangeState();
	void GoRight();
	void GoLeft();
	void ShowSquare();
	void HideSquare();
	void CreateSquare();
	void DeleteLine(int iIndex); // iIndex is 0 based
	void ShowPreView();
	BOOL m_bRunning;
	BOOL m_bAPITimerRunning;
// Generated message map functions
protected:
	//{{AFX_MSG(CBlockView)
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
	afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnBkcolor();
	afx_msg void OnBlockcolor();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in blockView.cpp
inline CBlockDoc* CBlockView::GetDocument()
   { return (CBlockDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_BLOCKVIEW_H__7A04EEED_5E2A_11D7_80DF_000021E3C617__INCLUDED_)

⌨️ 快捷键说明

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