?? handtetrisview.h
字號:
// HandTetrisView.h : interface of the CHandTetrisView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_HANDTETRISVIEW_H__A20577D0_F70B_4222_BB4C_3B73D2004823__INCLUDED_)
#define AFX_HANDTETRISVIEW_H__A20577D0_F70B_4222_BB4C_3B73D2004823__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "Game.h"
#include "SetupDlg.h"
class CHandTetrisView : public CView
{
protected: // create from serialization only
CHandTetrisView();
DECLARE_DYNCREATE(CHandTetrisView)
// Attributes
public:
CHandTetrisDoc* GetDocument();
void Initial();
CGame Game;
BOOL m_bMusic;
BOOL m_bStart;
BOOL m_bPause;
CDC* m_pMemDC; //內存DC
CDC* m_pInitialMemDC; //
CBitmap* m_pBitmap; //存放上一次移動時的外觀
CBitmap* m_pInitialBitmap; //存放游戲未開始時的外觀
CRect GameRect;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHandTetrisView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHandTetrisView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CHandTetrisView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnGameStart();
afx_msg void OnGamePause();
afx_msg void OnGameSetup();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in HandTetrisView.cpp
inline CHandTetrisDoc* CHandTetrisView::GetDocument()
{ return (CHandTetrisDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HANDTETRISVIEW_H__A20577D0_F70B_4222_BB4C_3B73D2004823__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -