summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_genmenu.inc3
-rw-r--r--include/m_genmenu.h13
2 files changed, 4 insertions, 12 deletions
diff --git a/include/delphi/m_genmenu.inc b/include/delphi/m_genmenu.inc
index f64f48dbf2..a8d54d8edb 100644
--- a/include/delphi/m_genmenu.inc
+++ b/include/delphi/m_genmenu.inc
@@ -195,10 +195,9 @@ const
type
PMO_MenuItem = ^TMO_MenuItem;
TMO_MenuItem = record
- cbSize :int;
- szName :TCHAR;
position :int;
root :HGENMENU;
+ szName :TCHAR;
flags :integer;
hIcon :HICON; // or hIcolibItem:THANDLE;
hotKey :dword;
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index 1bcfd1581d..55ba8115ee 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -179,21 +179,15 @@ __forceinline HGENMENU Menu_AddTrayMenuItem(CLISTMENUITEM *mi)
//wParam=lParam=0
#define ME_CLIST_PREBUILDMAINMENU "CList/PreBuildMainMenu"
-
/*GENMENU_MODULE*/
#define SETTING_NOOFFLINEBOTTOM_DEFAULT 0
-typedef struct
+struct TMO_MenuItem
{
- int cbSize;
- union
- {
- char *pszName;
- TCHAR *ptszName;
- };
int position;
HGENMENU root;
+ MAllStrings name;
int flags;
union {
HICON hIcon;
@@ -202,8 +196,7 @@ typedef struct
DWORD hotKey;
void *ownerdata;
int hLangpack;
-}
- TMO_MenuItem,*PMO_MenuItem;
+};
/*
This structure passed to CheckService.