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

📄 2_1view.h

📁 VC++游戏编程
💻 H
字号:
// 2_1View.h : interface of the CMy2_1View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_2_1VIEW_H__AFAA7E4D_C6EE_11D5_B2C4_5254AB2BD63E__INCLUDED_)
#define AFX_2_1VIEW_H__AFAA7E4D_C6EE_11D5_B2C4_5254AB2BD63E__INCLUDED_

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


class Lei
{
public:
	int weitu;
	int shumu;
};
class CMy2_1View : public CView
{
protected: // create from serialization only
	CMy2_1View();
	DECLARE_DYNCREATE(CMy2_1View)

// Attributes
public:
	CMy2_1Doc* GetDocument();
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMy2_1View)
	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:
	int leftnum;//剩下雷数
	int leinum;//雷数	
	int jieshu;//结束	
	short second;//计时
	int secondstart;//开始计时
	CBitmap m_Bitmap[12];
	CBitmap m_anniu[4];
	int m_RowCount;//行
	int m_ColCount;//列
	Lei lei[50][50];//最大雷区
	virtual ~CMy2_1View();
	void leizero();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMy2_1View)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnStart();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 2_1View.cpp
inline CMy2_1Doc* CMy2_1View::GetDocument()
   { return (CMy2_1Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_2_1VIEW_H__AFAA7E4D_C6EE_11D5_B2C4_5254AB2BD63E__INCLUDED_)

⌨️ 快捷键说明

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