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

📄 打字游戏view.h

📁 这是一个打字游戏哦
💻 H
字号:
// 打字游戏View.h : interface of the CMyView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VIEW_H__1AB704CE_9279_4BD4_9237_6154B5A358D0__INCLUDED_)
#define AFX_VIEW_H__1AB704CE_9279_4BD4_9237_6154B5A358D0__INCLUDED_

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

#include "BmpWnd.h"
class CMyView : public CView
{
protected: // create from serialization only
	CMyView();
	DECLARE_DYNCREATE(CMyView)

// Attributes
public:
	CMyDoc* GetDocument();

// Operations
public:
	BOOL	m_bRunning;
	BOOL	m_bSoundOn;
	CBmpWnd m_wndBmp[10];
	int		m_nLevel;

	int		m_nHitCount;
	int		m_nMissCount;
	int		m_nErrorCount;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	afx_msg void OnContextMenu(CWnd*, CPoint point);
	//{{AFX_MSG(CMyView)
	afx_msg void OnStart();
	afx_msg void OnUpdateStart(CCmdUI* pCmdUI);
	afx_msg void OnStop();
	afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
	afx_msg void OnSoundOff();
	afx_msg void OnUpdateSoundOff(CCmdUI* pCmdUI);
	afx_msg void OnSoundOn();
	afx_msg void OnUpdateSoundOn(CCmdUI* pCmdUI);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnHero();
	afx_msg void OnAppAbout();
	afx_msg void OnFullScreen();
	afx_msg void OnFileNew();
	afx_msg void OnAppExit();
	//}}AFX_MSG
	afx_msg void OnHitCount(CCmdUI* pCmdUI) ;
	afx_msg void OnMissCount(CCmdUI* pCmdUI) ;
	afx_msg void OnErrorCount(CCmdUI* pCmdUI) ;
	afx_msg void OnUpdateLevel(CCmdUI* pCmdUI);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in 打字游戏View.cpp
inline CMyDoc* CMyView::GetDocument()
   { return (CMyDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_VIEW_H__1AB704CE_9279_4BD4_9237_6154B5A358D0__INCLUDED_)

⌨️ 快捷键说明

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