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

📄 waitingcanvas.h

📁 象棋框架
💻 H
字号:
// WaitingCanvas.h: interface for the CWaitingCanvas class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WAITINGCANVAS_H__A1ECAF8B_17EB_4734_8E9E_60BCB6469640__INCLUDED_)
#define AFX_WAITINGCANVAS_H__A1ECAF8B_17EB_4734_8E9E_60BCB6469640__INCLUDED_

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

#include "BrewLoginCanvasBase.h"
#include "brewlogin.h"

#define INFO_LEN 50

struct CDispInfo
{
	AECHAR pInfo[INFO_LEN];
	AECHAR pErrmsg[INFO_LEN];
	uint8  nPreState;
	boolean bErr;	//是否显示错误信息
};

typedef struct CDispInfo CDispInfo;

class CWaitingCanvas : public CBrewLoginCanvasBase  
{
public:
	CWaitingCanvas();
	virtual ~CWaitingCanvas();	
	CDispInfo m_dp;
public:
	boolean m_bTimeOut;
	void SetDispMsg(CDispInfo* dp);
    void setFrame(void *f);
	CBrewLogin* frame;
    void paint(IDisplay *d, IGraphics *g);
    boolean keyPressed(UINT16 code, UINT32 param);
    boolean keyReleased(UINT16 code, UINT32 param);
    boolean keyRepeated(UINT16 code, UINT32 param);
    boolean key(UINT16 code, UINT32 param);    
	void TimeOut();
	boolean onEvent(AEEEvent eCode, UINT16 wParam, UINT32 dwParam);
};
IBrewCanvas* CreateWaitingCanvas();
void SetWaitingMsg(int nCurCanvas,IBrewCanvas* pCanvas,
				   AECHAR* pMsg,boolean bErr,uint8  nPreState);

#endif // !defined(AFX_WAITINGCANVAS_H__A1ECAF8B_17EB_4734_8E9E_60BCB6469640__INCLUDED_)

⌨️ 快捷键说明

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