brewlogincanvas3.h

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

H
63
字号
// BrewLoginCanvas3.h: interface for the CBrewLoginCanvas3 class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BREWLOGINCANVAS3_H__3BD7F2A3_C2AE_4A51_B1BC_03F6B11EAAA6__INCLUDED_)
#define AFX_BREWLOGINCANVAS3_H__3BD7F2A3_C2AE_4A51_B1BC_03F6B11EAAA6__INCLUDED_

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

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


class CBrewLogin;

#define GETTEXT(p,t) {ITEXTCTL_GetText(p,t,sizeof(t)); \
	int i; \
	if(WSTRLEN(t) > (sizeof(t)) / 2 - 1) \
	t[(sizeof(t))/2 - 1] = 0; \
	for(i = 0; i < WSTRLEN(t); i++) \
	t[i] = HTONS(t[i]); \
t##Length = WSTRLEN(t)*2; }


class CBrewLoginCanvas3 : public CBrewLoginCanvasBase  
{
public:
    CBrewLoginCanvas3();
    virtual ~CBrewLoginCanvas3();
	
public:
	int8 m_nNewState;
	AEERect m_rtArrow;
	int8 m_nforangle;
	CBrewLogin* frame;
	ITextCtl *m_pUser,*m_pPasswd,*m_pNick,*m_pMobile;
	IStatic *m_pSex;
	boolean m_bIsMale;
	AECHAR m_errMsg[30];	

public:
    void setFrame(void *f);
    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);   
	
	virtual void onSuspend();
	virtual void DisplayControl( IDisplay* pIDisplay, AECHAR* psTextBuf, IControl* pCtl, AEERect& rRect ,IGraphics* g);
	virtual void SetActiveCtrl(int8 pos); //0表示当前,-1上一个,1下一个	
	void DrawSign(AEERect* prt,IGraphics* g);
	virtual boolean UpdateData(boolean bUpdateDisp);
	//boolean onEvent(AEEEvent eCode, UINT16 wParam, UINT32 dwParam);
};

IBrewCanvas *CreateLoginCanvas3();

#endif // !defined(AFX_BREWLOGINCANVAS3_H__3BD7F2A3_C2AE_4A51_B1BC_03F6B11EAAA6__INCLUDED_)

⌨️ 快捷键说明

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