windowstack.h
来自「以栈结构实现的多级菜单」· C头文件 代码 · 共 46 行
H
46 行
#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
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?