russiaview.h
来自「一个俄罗斯方块的vc源代码」· C头文件 代码 · 共 100 行
H
100 行
// RussiaView.h : interface of the CRussiaView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_RUSSIAVIEW_H__56B31566_EA05_11D4_9FE2_00D0590D4CE7__INCLUDED_)
#define AFX_RUSSIAVIEW_H__56B31566_EA05_11D4_9FE2_00D0590D4CE7__INCLUDED_
#include "Game.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Game.h"
#include "DialogSetup.h"
#include "DialogHelp.h"
#include "DialogColorSetup.h"
#include "DialogNameInput.h"
#include "DialogPlayer.h"
class CRussiaView : public CView
{
protected: // create from serialization only
CRussiaView();
DECLARE_DYNCREATE(CRussiaView)
// Attributes
public:
//CRussiaDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRussiaView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
void Initial();
int GetMinScore();
void SavePlayer(int score,CString player);
CGame Game;
CGame Game2;
BOOL m_bMusic;
BOOL m_bPause;
int CurrentGameFlag;//1为单人游戏,2为双人游戏,3为网络游戏
CDC* m_pMemDC; //内存DC
CDC* m_pInitialMemDC; //
CBitmap* m_pBitmap; //存放上一次移动时的外观
CBitmap* m_pInitialBitmap; //存放游戏未开始时的外观
CRect GameRect;
virtual ~CRussiaView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRussiaView)
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnMenuStart();
afx_msg void OnMenuPause();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnUpdateMenuPause(CCmdUI* pCmdUI);
afx_msg void OnMenuSetup();
afx_msg void OnMenuSave();
afx_msg void OnMenuRead();
afx_msg void OnMenuNetstart();
afx_msg void OnMenuDoublestart();
afx_msg void OnMenuHelp();
afx_msg void OnMenuColor();
afx_msg void OnMenuPlayer();
afx_msg void OnDestroy();
//}}AFX_MSG
LRESULT OnHotKey(WPARAM wParam,LPARAM lParam);
DECLARE_MESSAGE_MAP()
private:
BOOL m_bStart;
};
#ifndef _DEBUG // debug version in RussiaView.cpp
//inline CRussiaDoc* CRussiaView::GetDocument()
// { return (CRussiaDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RUSSIAVIEW_H__56B31566_EA05_11D4_9FE2_00D0590D4CE7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?