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

📄 rainview.h

📁 好用的键盘超人源代码
💻 H
字号:
// rainView.h : interface of the CRainView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RAINVIEW_H__997739C0_CEAA_11D2_90C0_000000000007__INCLUDED_)
#define AFX_RAINVIEW_H__997739C0_CEAA_11D2_90C0_000000000007__INCLUDED_

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

#include "raincom.h"
#include "rainsock.h"

#include "statedlg.h"
#include "connectdlg.h"
#include "startdlg.h"
#include "resultdlg.h"
#include "scoredlg.h"

class CRainView : public CView
{
private:
	void doHighScore();
	void drawRain(CDC* pDC);
	void drawMsg(CDC* pDC);
    void drawConnectState(CDC *pDC);
	void drawDemo(CDC *pDC);

	void doResultReport();
	int  doRainStart();
	
	CFont rainFont1,rainFont2,rainFont3,rainFont4;

	CRect rainRect;

	int pauseFlag; 
	int clientTimer;
	int connectTimer;



public:
	int timeLeft;

    CStateDlg    stateDlg;
    CConnectDlg  connectDlg;
	CStartDlg    startDlg;
	CResultDlg   resultDlg;
    CScoreDlg    scoreDlg; 
    

protected: // create from serialization only
	CRainView();
	DECLARE_DYNCREATE(CRainView)

public:
	CRainDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRainView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view

	//}}AFX_VIRTUAL

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

// Generated message map functions
protected:
	//{{AFX_MSG(CRainView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnMenuitemStart();
	afx_msg void OnMenuitemStop();
	afx_msg void OnMenuitemPause();
	afx_msg void OnUpdateMenuitemStart(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMenuitemPause(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMenuitemStop(CCmdUI* pCmdUI);
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnMenuitemScore();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in rainView.cpp
inline CRainDoc* CRainView::GetDocument()
   { return (CRainDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RAINVIEW_H__997739C0_CEAA_11D2_90C0_000000000007__INCLUDED_)

⌨️ 快捷键说明

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