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

📄 plxdyncmenu.h

📁 mtk wap和mms代码。。适应mtk 25。26平台
💻 H
字号:
/***************************************************************************
*
*                      Pollex Mobile Platform
*
*  Copyright (c) 2004 by Pollex Mobile Software Co., Ltd.
*                       All Rights Reserved
*
*  Module  :    
*
*  Purpose :
*  
\**************************************************************************/

#ifndef _POLLEX_DYNAMIC_MENU_HEADER_
#define	_POLLEX_DYNAMIC_MENU_HEADER_

PLX_DECLARE_HANDLE(HDMENU)	//handle of dynamic menu

//Indicates the items
#ifdef MF_BYCOMMAND
#undef MF_BYCOMMAND
#endif
#define MF_BYCOMMAND        0x0000

#ifdef MF_BYPOSITION
#undef MF_BYPOSITION
#endif
#define MF_BYPOSITION       0x0400

#ifdef MF_POPUP
#undef MF_POPUP
#endif
#define MF_POPUP            0x0010

#ifdef MF_ENABLED
#undef MF_ENABLED
#endif
#define MF_ENABLED          0x0000

#ifdef MF_DISABLED
#undef MF_DISABLED
#endif
#define MF_DISABLED         0x0002


#define ST_EXPAND			0x8000

// using the global number icon and keep in consistent with the postion of items. 
// for the parameter of imageID is unsignd short type , 0 is a temporary solution
#define  IMG_ID_PLX_PUBLIC_GLOBAL_NUMBERICON     0

//DyncMenu event definition
#define ENT_BACK	1	//cancel the menu
#define ENT_OK	2		//ok
#define ENT_LEFT  	4	//left key
#define ENT_RIGHT	5	//right key

#define MAKEEVENT(a, b)      ((long)(((unsigned short)(a)) | ((unsigned long)((unsigned short)(b))) << 16))
#define LOEVENT(l)           ((unsigned short)(l))
#define HIEVENT(l)           ((unsigned short)(((unsigned long)(l) >> 16) & 0xFFFF))

typedef int (*DMENUNOTIFY)(HDMENU hDmenu, unsigned long id, unsigned long event);

HDMENU PlxCreateDMenu(unsigned short wFlags);
int PlxInsertDMenuItem(HDMENU hDMenu, int wPosition, unsigned short wFlags, 
					   unsigned long menuId, const char *pItemStr, unsigned short imageID);
int PlxDestroyDMenu(HDMENU hDMenu);
int PlxDeleteDMenuItem(HDMENU hDMenu, int wPos, unsigned short wFlags);
int PlxModifyDMenuItem(HDMENU hMenu, int wPos, unsigned short wFlags, unsigned long wIDNewItem,
					   const char *strNewItem, unsigned short imageID);
void PlxSetDMenuDispInfo(U16 title, U16 title_icon, U16 left_softkey, U16 left_softkey_icon, U16 right_softkey, U16 right_softkey_icon);
int PlxShowDMenu(HDMENU hMenu, int screenID, unsigned long title, DMENUNOTIFY NotifyFunc, FuncPtr DMenuEntry);
void PlxRedrawDMenu(void); 

#endif	//_POLLEX_DYNAMIC_MENU_HEADER_

⌨️ 快捷键说明

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