From 9238c4e3aa9df5d0726cf3a03e632bc3d3969711 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Jul 2015 13:15:30 +0000 Subject: two new flags of TMO_MenuItem: - CMIF_SYSTEM: filters a menu item out of options' editor; - CMIF_UNMOVABLE: denies attempts to change the item's position; - CMIF_SYSTEM applied to frames' menu; - CMIF_UNMOVABLE applied to Jabber protocol menu items; git-svn-id: http://svn.miranda-ng.org/main/trunk@14468 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_genmenu.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/m_genmenu.h b/include/m_genmenu.h index 3e9b93fbc7..d9388ad8bd 100644 --- a/include/m_genmenu.h +++ b/include/m_genmenu.h @@ -17,23 +17,25 @@ #define MO_PROTO (-3) #define MO_STATUS (-4) -#define CMIF_GRAYED 1 -#define CMIF_CHECKED 2 -#define CMIF_HIDDEN 4 //only works on contact menus -#define CMIF_NOTOFFLINE 8 //item won't appear for contacts that are offline -#define CMIF_NOTONLINE 16 // " online -#define CMIF_NOTONLIST 32 //item won't appear on standard contacts -#define CMIF_NOTOFFLIST 64 //item won't appear on contacts that have the 'NotOnList' setting - -#define CMIF_UNICODE 512 //will return TCHAR* instead of char* +#define CMIF_GRAYED 0x0001 +#define CMIF_CHECKED 0x0002 +#define CMIF_HIDDEN 0x0004 // only works on contact menus +#define CMIF_NOTOFFLINE 0x0008 // item won't appear for contacts that are offline +#define CMIF_NOTONLINE 0x0010 // " online +#define CMIF_NOTONLIST 0x0020 // item won't appear on standard contacts +#define CMIF_NOTOFFLIST 0x0040 // item won't appear on contacts that have the 'NotOnList' setting +#define CMIF_UNMOVABLE 0x0080 // item's position cannot be changed +#define CMIF_SYSTEM 0x0100 // item's presence & position cannot be changed + +#define CMIF_UNICODE 0x0200 // will use wchar_t* instead of char* #if defined(_UNICODE) -#define CMIF_TCHAR CMIF_UNICODE //will return TCHAR* instead of char* +#define CMIF_TCHAR CMIF_UNICODE #else -#define CMIF_TCHAR 0 //will return char*, as usual +#define CMIF_TCHAR 0 #endif -#define CMIF_KEEPUNTRANSLATED 1024 // don't translate a menu item -#define CMIF_DEFAULT 4096 // this menu item is the default one +#define CMIF_KEEPUNTRANSLATED 0x0400 // don't translate a menu item +#define CMIF_DEFAULT 0x1000 // this menu item is the default one struct TMO_MenuItem { -- cgit v1.2.3