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

📄 0206220330view.h

📁 俄罗斯方块小游戏用vc实现
💻 H
字号:
// 0206220330View.h : interface of the CMy0206220330View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_0206220330VIEW_H__5D7F3C72_8666_4476_BE33_CD00224B4197__INCLUDED_)
#define AFX_0206220330VIEW_H__5D7F3C72_8666_4476_BE33_CD00224B4197__INCLUDED_

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

struct point
{
	int x;
	int y;
};


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

// Attributes
public:
	CMy0206220330Doc* GetDocument();


	COLORREF tempclr,boxcolor[20][10],facecolor;

	int R;
//	int L;
	int H;
	int cor[20][10];
//	int J;
	int K;
	BOOL flag,flag2;


	int isstart;
	int k;
	int timer;

	CString name;
	
	point box[4],bb[4],dd[4];




// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy0206220330View)
	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:
	void nextbox(int);
	void showbox();
	void makebox(int);
	int time;
	int Isbottom();
	int round(int);
	void Isover();
	int dop();
	void clean();
	int Isout(int);
	void MyDraw();
	virtual ~CMy0206220330View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMy0206220330View)
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnStart();
	afx_msg void OnStop();
	afx_msg void OnPause();
	afx_msg void OnSet();
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnInstruction();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 0206220330View.cpp
inline CMy0206220330Doc* CMy0206220330View::GetDocument()
   { return (CMy0206220330Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_0206220330VIEW_H__5D7F3C72_8666_4476_BE33_CD00224B4197__INCLUDED_)

⌨️ 快捷键说明

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