?? hanview.h
字號:
// HanView.h : interface of the CHanView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_HANVIEW_H__D9158F8D_A72F_11D8_8643_50781C4445F1__INCLUDED_)
#define AFX_HANVIEW_H__D9158F8D_A72F_11D8_8643_50781C4445F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CHanView : public CView
{
protected: // create from serialization only
CHanView();
DECLARE_DYNCREATE(CHanView)
// Attributes
public:
CHanDoc* GetDocument();
// Operations
public:
int y; //m_tu[x][y]x<30,
int x; //m_tu[x][y] -4<y<6
int m_sudu; //速度變量
int m_tu[39][19]; //方格
int m; //定時器變量
int n; //鍵盤變量
CRect m_rcetsudu; //表示速度的距陣
CRect m_rectfen; //表示得分的距陣
int defen; //得分變量
CRect m_rectyouxi; //游戲區(qū)的距陣
int pandiantuxing; //判定出現(xiàn)方塊
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHanView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CHanView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CHanView)
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnStart();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnOne();
afx_msg void OnTwo();
afx_msg void OnThere();
afx_msg void OnFour();
afx_msg void OnFive();
afx_msg void OnSix();
afx_msg void OnSeven();
afx_msg void OnEight();
afx_msg void OnNine();
afx_msg void OnTen();
afx_msg void OnBreak();
afx_msg void OnBegin();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in HanView.cpp
inline CHanDoc* CHanView::GetDocument()
{ return (CHanDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HANVIEW_H__D9158F8D_A72F_11D8_8643_50781C4445F1__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -