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/MyDetails/src/commons.h | 1 + plugins/MyDetails/src/frame.cpp | 2 +- plugins/MyDetails/src/mydetails.cpp | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MyDetails/src') diff --git a/plugins/MyDetails/src/commons.h b/plugins/MyDetails/src/commons.h index 735b1751ae..afefec9dd1 100644 --- a/plugins/MyDetails/src/commons.h +++ b/plugins/MyDetails/src/commons.h @@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. #include #include #include +#include #include #include #include diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index efeaad5c0f..f4f98dd258 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -329,13 +329,13 @@ int CreateFrame() CLISTMENUITEM mi = { 0 }; mi.flags = CMIF_TCHAR; - mi.popupPosition = -0x7FFFFFFF; mi.ptszPopupName = LPGENT("My details"); mi.position = 1; // 500010000 mi.hIcon = Skin_LoadIcon(SKINICON_OTHER_USERDETAILS); mi.ptszName = LPGENT("Show my details"); mi.pszService = MODULE_NAME"/ShowHideMyDetails"; hMenuShowHideFrame = Menu_AddMainMenuItem(&mi); + Menu_ConfigureItem(hMenuShowHideFrame, MCI_OPT_EXECPARAM, -0x7FFFFFFF); if (db_get_b(0, MODULE_NAME, SETTING_FRAME_VISIBLE, 1) == 1) { ShowWindow(hwnd_container, SW_SHOW); diff --git a/plugins/MyDetails/src/mydetails.cpp b/plugins/MyDetails/src/mydetails.cpp index 88dc26a77c..9fb9ce467c 100644 --- a/plugins/MyDetails/src/mydetails.cpp +++ b/plugins/MyDetails/src/mydetails.cpp @@ -88,7 +88,7 @@ static int MainInit(WPARAM, LPARAM) // Add options to menu CLISTMENUITEM mi = { 0 }; - mi.popupPosition = 500050000; + mi.position = 500050000; mi.flags = CMIF_ROOTHANDLE | CMIF_TCHAR; mi.icolibItem = Skin_GetIconHandle(SKINICON_OTHER_USERDETAILS); mi.ptszName = LPGENT("My details"); @@ -96,7 +96,6 @@ static int MainInit(WPARAM, LPARAM) mi.flags = CMIF_ROOTHANDLE | CMIF_TCHAR; mi.hParentMenu = hMenuRoot; - mi.popupPosition = 0; mi.icolibItem = NULL; if (protocols->CanSetAvatars()) { -- cgit v1.2.3