diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-26 18:21:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-26 18:21:10 +0000 |
commit | 68924bfc1a213e619563c2cffb6d44b5b5346f6d (patch) | |
tree | 139f501b225080e4f895dbd40083df5956c3e339 /plugins/FTPFileYM/src/ftpfile.cpp | |
parent | b7a7d90f054d48dfda64e8a11d4f5cbb3fe2a521 (diff) |
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
Diffstat (limited to 'plugins/FTPFileYM/src/ftpfile.cpp')
-rw-r--r-- | plugins/FTPFileYM/src/ftpfile.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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];
|