ourblokeview.h

来自「基于WindowCE上对于windows mobile开发的一个俄罗斯方块程序」· C头文件 代码 · 共 79 行

H
79
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?