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/FTPFileYM/src/ftpfile.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/FTPFileYM/src/ftpfile.cpp') diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index f039edde87..f0f4efad27 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -122,8 +122,8 @@ void InitMenuItems() } mi.icolibItem = iconList[i].hIcolib; - mi.popupPosition = i + 1000; hSubMenu[i] = Menu_AddContactMenuItem(&mi); + Menu_ConfigureItem(hSubMenu[i], MCI_OPT_EXECPARAM, i + 1000); mi.flags |= CMIF_ROOTHANDLE; mi.hParentMenu = hMainMenu; @@ -131,9 +131,9 @@ void InitMenuItems() mi2.hParentMenu = hSubMenu[i]; mi2.pszService = MS_FTPFILE_CONTACTMENU; - mi2.popupPosition = mi2.position = i + UploadJob::FTP_RAWFILE; mi2.ptszName = LPGENT("Upload file(s)"); - Menu_AddContactMenuItem(&mi2); + HGENMENU tmp = Menu_AddContactMenuItem(&mi2); + Menu_ConfigureItem(tmp, MCI_OPT_EXECPARAM, mi2.position = i + UploadJob::FTP_RAWFILE); mi2.pszService = MS_FTPFILE_MAINMENU; mi2.hParentMenu = hMainSubMenu[i]; @@ -141,9 +141,9 @@ void InitMenuItems() mi2.hParentMenu = hSubMenu[i]; mi2.pszService = MS_FTPFILE_CONTACTMENU; - mi2.popupPosition = i + UploadJob::FTP_ZIPFILE; mi2.ptszName = LPGENT("Zip and upload file(s)"); - Menu_AddContactMenuItem(&mi2); + tmp = Menu_AddContactMenuItem(&mi2); + Menu_ConfigureItem(tmp, MCI_OPT_EXECPARAM, i + UploadJob::FTP_ZIPFILE); mi2.pszService = MS_FTPFILE_MAINMENU; mi2.hParentMenu = hMainSubMenu[i]; @@ -151,9 +151,9 @@ void InitMenuItems() mi2.hParentMenu = hSubMenu[i]; mi2.pszService = MS_FTPFILE_CONTACTMENU; - mi2.popupPosition = i + UploadJob::FTP_ZIPFOLDER; mi2.ptszName = LPGENT("Zip and upload folder"); - Menu_AddContactMenuItem(&mi2); + tmp = Menu_AddContactMenuItem(&mi2); + Menu_ConfigureItem(tmp, MCI_OPT_EXECPARAM, i + UploadJob::FTP_ZIPFOLDER); mi2.pszService = MS_FTPFILE_MAINMENU; mi2.hParentMenu = hMainSubMenu[i]; -- cgit v1.2.3