waitingcanvas.h

来自「象棋框架」· C头文件 代码 · 共 51 行

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