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

📄 ourblokeview.h

📁 基于WindowCE上对于windows mobile开发的一个俄罗斯方块程序
💻 H
字号:
// OurBlokeView.h : COurBlokeView 类的接口
//


#pragma once
#include "m_Screen.h"

#include "OurBlokeDoc.h"
//extern class m_Screen;

class COurBlokeView : public CView
{
protected: // 仅从序列化创建
	COurBlokeView();
	DECLARE_DYNCREATE(COurBlokeView)

// 属性
public:
	COurBlokeDoc* GetDocument() const;

// 操作
public:

// 重写
public:
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);

protected:

// 实现
public:
	virtual ~COurBlokeView();
public:
	m_Screen _Screen;
#ifdef _DEBUG
	virtual void AssertValid() const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
public:
//	afx_msg void OnTimer(UINT_PTR nIDEvent);
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
public:
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
public:
	int _CursorX;
//private:
//	CRITICAL_SECTION lpCriticalSection;  
	afx_msg void OnTimer(UINT_PTR nIDEvent);
private:
	int counter;

	//int score;
public:
	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);

	bool bDo;
};

#ifndef _DEBUG  // OurBlokeView.cpp 中的调试版本
inline COurBlokeDoc* COurBlokeView::GetDocument() const
   { return reinterpret_cast<COurBlokeDoc*>(m_pDocument); }
#endif


struct INITIALWND
{
	COurBlokeView * pView;

};

⌨️ 快捷键说明

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