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

📄 russianview.h

📁 一个可以在嵌入式平台上面开发的俄罗斯方块程序
💻 H
字号:
// RussianView.h : interface of the CRussianView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RUSSIANVIEW_H__E5B598ED_3332_11D3_8CB4_0000210056C3__INCLUDED_)
#define AFX_RUSSIANVIEW_H__E5B598ED_3332_11D3_8CB4_0000210056C3__INCLUDED_

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

#include "wcedb.h"

class CSquareBase;
class CRussianView : public CFormView
{
protected: // create from serialization only
	CRussianView();
	DECLARE_DYNCREATE(CRussianView)

	CBitmapButton leftButton;
	CBitmapButton rightButton;
	CBitmapButton upButton;
	CBitmapButton downButton;

public:

	//{{AFX_DATA(CRussianView)
	enum{ IDD = IDD_RUSSIAN_FORM };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

// Attributes
public:
	CRussianDoc* GetDocument();
	
	CSquareBase *square;
	CSquareBase *m_1square;
	CSquareBase *m_2square;
	CSquareBase *m_3square;
	CSquareBase *m_4square;
	CSquareBase *m_5square;
	CSquareBase *m_6square;
	CSquareBase *m_7square;

	UINT nTimeID;
	UINT m_nStartSpeed;//起始速度
	UINT SpeedDifference;//速度差
	bool bHaveTimer;

	CBrush WhiteBrush;
	CRect rect;
	CRect PromptFrame;
	void InitGlobal();

// Attributes
public:
	CCeDBDatabase m_DBPlayer;
	CCeDBRecord m_Record;
	CCeDBProp m_pSortProp[2];
	CCeDBProp m_pValProp[2];
	CString m_PlayerName;
	ULONG m_Score;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRussianView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
	virtual void OnDraw(CDC* pDC);
	//}}AFX_VIRTUAL

// Implementation
public:
	void AppendRecord();
	void DrawPromptSquare(int Square_Kind);
	virtual ~CRussianView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRussianView)
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonStart();
	afx_msg void OnPaint();
	afx_msg void OnButtonDown();
	afx_msg void OnButtonLeft();
	afx_msg void OnButtonRight();
	afx_msg void OnPause();
	afx_msg void OnReplay();
	afx_msg void OnStart();
	afx_msg void OnContinue();
	afx_msg void OnButtonUp();
	afx_msg void OnPlayer();
	afx_msg void OnDelete();
	afx_msg void OnExit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in RussianView.cpp
inline CRussianDoc* CRussianView::GetDocument()
   { return (CRussianDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_RUSSIANVIEW_H__E5B598ED_3332_11D3_8CB4_0000210056C3__INCLUDED_)

⌨️ 快捷键说明

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