From 59cd198e89782263777c57dcd54704ecb1e10212 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 28 Jun 2015 17:41:48 +0000 Subject: finally CLISTEVENT removed completely git-svn-id: http://svn.miranda-ng.org/main/trunk@14430 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_genmenu.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'include/m_genmenu.h') diff --git a/include/m_genmenu.h b/include/m_genmenu.h index 9ecbfadb31..20ca70b020 100644 --- a/include/m_genmenu.h +++ b/include/m_genmenu.h @@ -17,20 +17,37 @@ #define MO_PROTO (-3) #define MO_STATUS (-4) -#define SETTING_NOOFFLINEBOTTOM_DEFAULT 0 +#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* +#if defined(_UNICODE) +#define CMIF_TCHAR CMIF_UNICODE //will return TCHAR* instead of char* +#else +#define CMIF_TCHAR 0 //will return char*, as usual +#endif + +#define CMIF_KEEPUNTRANSLATED 1024 // don't translate a menu item +#define CMIF_DEFAULT 4096 // this menu item is the default one struct TMO_MenuItem { int position; + const char *pszService; HGENMENU root; MAllStrings name; - int flags; + int flags; // set of CMIF_* constants union { HICON hIcon; HANDLE hIcolibItem; }; void *ownerdata; - int hLangpack; + int hLangpack; }; /* -- cgit v1.2.3