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

📄 gamedlg.h

📁 一个俄罗斯方块程序 功能齐全
💻 H
字号:
// gameDlg.h : header file
//

#if !defined(AFX_GAMEDLG_H__BEAC1ACB_5B70_4945_88EC_868CE1411C47__INCLUDED_)
#define AFX_GAMEDLG_H__BEAC1ACB_5B70_4945_88EC_868CE1411C47__INCLUDED_

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

typedef  struct 
{ 
	int Type;                   //颜色,0为非下落方块,颜色为背景色
	int x;                      //横坐标
	int y;                      //竖坐标
	int group;                  //组,例如横棍为一组,通组内能相互变形转换
	int ZZ;                     //组内序号,一个形状对应一个序号,可在同组内转换
}OBJECT;

/////////////////////////////////////////////////////////////////////////////
// CGameDlg dialog
class CGameDlg : public CDialog
{
// Construction
public:

	int WentTo();
	int Check(CPoint p, CRect rect);  //收埋后检测鼠标是否移动到对话框的边沿,以便使对话框再显示出来

	void ReDraw();
	void MoveOn(int n);
	void OnDraw(CDC *pDC); 

	void cout(int a, int x, int y);
	int check1();
	int check2();
	int check3();
	void Show(OBJECT object);
	void Clear(int a, int b);
	void ClearUp();
	void ObjectGroup(OBJECT object);
	void DeleteGroup(OBJECT object);
	void ChangeShape(OBJECT object);
	void PreView();
	void KeepData();

	void InPut(OBJECT object,int t[]);

	void one(OBJECT object);
	void one(OBJECT object, int a, int b);
	void one(int Type, int i, int j);
	void Shape();

	CGameDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CGameDlg)
	enum { IDD = IDD_GAME_DIALOG };
	CButton	m_Pause;
	CComboBox	m_str;
	CStatic	m_Out;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGameDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CGameDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBackcolor();
	afx_msg void OnButton1();
	afx_msg void OnDown();
	afx_msg void OnLeft();
	afx_msg void OnRight();
	afx_msg void OnUp();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	afx_msg void OnButton2();
	afx_msg void OnButton3();
	afx_msg void OnButton4();
	afx_msg void OnButton5();
	afx_msg void OnMyself();
	afx_msg void OnPause();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_GAMEDLG_H__BEAC1ACB_5B70_4945_88EC_868CE1411C47__INCLUDED_)

⌨️ 快捷键说明

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