WindowStack.h
资源名称:MenuList.rar [点击查看]
上传用户:duwei1288
上传日期:2009-12-27
资源大小:451k
文件大小:1k
源码类别:
BREW编程
开发平台:
Visual C++
- #ifndef _WINDOWSTACK_H
- #define _WINDOWSTACK_H
- #include "AeeStdLib.h"
- #include "IStack.h"
- #include "AEEAppGen.h"
- ////////////////////////////////////////////////////////////////////////
- typedef enum
- {
- WAPWINID_NULL,
- WAPWINID_MAINMENU,
- WAPWINID_INPUT,
- WAPWINID_BOOKMARK,
- WAPWINID_PUSH,
- WAPWINID_HISTORY
- }TWindowID;
- typedef boolean TWindowHandle(void* pWin,AEEEvent eCode, uint16 wParam, uint32 dwParam);
- typedef void* TWindowCreate(IShell* pShell,void* pParam);
- typedef boolean TWindowRelease(IShell* pShell,void** pWin);
- typedef boolean TWindowRedraw(IShell* pShell,void* pWin);
- typedef struct IWinFunctionDef
- {
- TWindowID nWinID;
- TWindowCreate* pCreate;
- TWindowRelease* pRelease;
- TWindowRedraw* pRedraw;
- TWindowHandle* pEventHdl;
- }IWinFunctionDef;
- ////////////////////////////////////////////////////////////////////////
- typedef struct TStackElement
- {
- void* m_pWin;
- TWindowID nWinID;
- }TWinElement;
- typedef struct _IWindowStack
- {
- IStack* m_pStack;
- IShell* m_pShell;
- }IWindowStack;
- boolean IWINSTACK_CreateInstance();
- boolean IWINSTACK_Release();
- boolean IWINSTACK_HandleEvent(AEEEvent eCode, uint16 wParam, uint32 dwParam);
- boolean IWINSTACK_OpenWindow(TWindowID nWinID,void* pParam);
- boolean IWINSTACK_CloseWindow(boolean bRedraw);
- #endif