From 68924bfc1a213e619563c2cffb6d44b5b5346f6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jun 2015 18:21:10 +0000 Subject: next slice of cutting out unused menu features - popupPosition git-svn-id: http://svn.miranda-ng.org/main/trunk@14400 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SecureIM/src/commonheaders.h | 1 + plugins/SecureIM/src/main.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/SecureIM/src') diff --git a/plugins/SecureIM/src/commonheaders.h b/plugins/SecureIM/src/commonheaders.h index 18908fb146..482289edce 100644 --- a/plugins/SecureIM/src/commonheaders.h +++ b/plugins/SecureIM/src/commonheaders.h @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include diff --git a/plugins/SecureIM/src/main.cpp b/plugins/SecureIM/src/main.cpp index a7f46db025..7fb923a5bb 100644 --- a/plugins/SecureIM/src/main.cpp +++ b/plugins/SecureIM/src/main.cpp @@ -53,11 +53,12 @@ static HGENMENU AddSubItem(HANDLE rootid, LPCSTR name, int pos, int poppos, LPCS CLISTMENUITEM mi = { 0 }; mi.flags = CMIF_ROOTHANDLE | CMIF_HIDDEN; mi.position = pos; - mi.popupPosition = poppos; mi.pszName = (char*)name; mi.pszPopupName = (char*)rootid; mi.pszService = (char*)service; - return Menu_AddContactMenuItem(&mi); + HGENMENU res = Menu_AddContactMenuItem(&mi); + Menu_ConfigureItem(res, MCI_OPT_EXECPARAM, poppos); + return res; } static int onModuleLoad(WPARAM, LPARAM) -- cgit v1.2.3