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

📄 clearbombview.h

📁 实现了windows自带小游戏扫雷的简单功能
💻 H
字号:
// ClearBombView.h : interface of the CClearBombView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLEARBOMBVIEW_H__3634D90E_50BF_4D9D_B847_D264C7B418EE__INCLUDED_)
#define AFX_CLEARBOMBVIEW_H__3634D90E_50BF_4D9D_B847_D264C7B418EE__INCLUDED_

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

#include "CBombGame.h"


class CClearBombView : public CFormView
{
protected: // create from serialization only
	CClearBombView();
	DECLARE_DYNCREATE(CClearBombView)

public:
	//{{AFX_DATA(CClearBombView)
	enum { IDD = IDD_CLEARBOMB_FORM };
	//}}AFX_DATA

// Attributes
public:
	CClearBombDoc* GetDocument();
	CBombGame m_cGame;
	int m_nBombClear;
	void InitClearBombGame();
	BOOL IsFinished();
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClearBombView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CClearBombView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CClearBombView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();
	afx_msg void OnMove(int x, int y);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ClearBombView.cpp
inline CClearBombDoc* CClearBombView::GetDocument()
   { return (CClearBombDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CLEARBOMBVIEW_H__3634D90E_50BF_4D9D_B847_D264C7B418EE__INCLUDED_)

⌨️ 快捷键说明

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