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

📄 myball.h

📁 一个小球乱跑的小游戏
💻 H
字号:
#if !defined(AFX_MYBALL_H__D117FD1F_6C93_4A1F_9E64_537457BD2595__INCLUDED_)
#define AFX_MYBALL_H__D117FD1F_6C93_4A1F_9E64_537457BD2595__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MyBall.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMyBall window
class CMyBall : public CWnd
{
// Construction
public:
	CMyBall();
	CRect m_rect;
	CBrush m_brush;
	CMyBall(CWnd *pParent, UINT id);

	UINT m_id;
	int m_nSpeed;
	int x, y, dx, dy;
	
// Attributes
public:
	
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyBall)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMyBall();

	// Generated message map functions
protected:
	CWnd * m_pParent;
	//{{AFX_MSG(CMyBall)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:


private:
};

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

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

#endif // !defined(AFX_MYBALL_H__D117FD1F_6C93_4A1F_9E64_537457BD2595__INCLUDED_)

⌨️ 快捷键说明

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