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

📄 windowstack.h

📁 以栈结构实现的多级菜单
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -