From 4810d4b1b7a47701b8e6c45490fb2643ea425123 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 23:13:56 +0000 Subject: rest of menu cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@4325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/mir_menuitems.cpp | 2 +- plugins/UserInfoEx/src/mir_menuitems.h | 2 +- plugins/UserInfoEx/src/svc_refreshci.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx') diff --git a/plugins/UserInfoEx/src/mir_menuitems.cpp b/plugins/UserInfoEx/src/mir_menuitems.cpp index 9ff015ce1c..3777556d28 100644 --- a/plugins/UserInfoEx/src/mir_menuitems.cpp +++ b/plugins/UserInfoEx/src/mir_menuitems.cpp @@ -28,7 +28,7 @@ enum ECascadeType { MCAS_NOTINITIATED = 128 }; -int hMenuItemRefresh = NULL; +HGENMENU hMenuItemRefresh = NULL; HGENMENU *hMenuItemAccount = NULL; /** diff --git a/plugins/UserInfoEx/src/mir_menuitems.h b/plugins/UserInfoEx/src/mir_menuitems.h index a081037513..612f45fcab 100644 --- a/plugins/UserInfoEx/src/mir_menuitems.h +++ b/plugins/UserInfoEx/src/mir_menuitems.h @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef _UINFOEX_MENUITEMS_H_INCLUDED_ #define _UINFOEX_MENUITEMS_H_INCLUDED_ -extern int hMenuItemRefresh; +extern HGENMENU hMenuItemRefresh; extern HGENMENU *hMenuItemAccount; diff --git a/plugins/UserInfoEx/src/svc_refreshci.cpp b/plugins/UserInfoEx/src/svc_refreshci.cpp index 5c4e87ae87..2db5949405 100644 --- a/plugins/UserInfoEx/src/svc_refreshci.cpp +++ b/plugins/UserInfoEx/src/svc_refreshci.cpp @@ -614,7 +614,7 @@ class CContactUpdater : public CContactQueue clmi.flags = CMIM_NAME|CMIM_ICON; clmi.pszName = LPGEN("Refresh Contact Details"); clmi.hIcon = IcoLib_GetIcon(ICO_BTN_UPDATE); - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) hMenuItemRefresh, (LPARAM)&clmi); + Menu_ModifyItem(hMenuItemRefresh, &clmi); } } @@ -740,7 +740,7 @@ public: clmi.flags = CMIM_NAME|CMIM_ICON; clmi.pszName = LPGEN("Abort Refreshing Contact Details"); clmi.hIcon = IcoLib_GetIcon(ICO_BTN_CANCEL); - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) hMenuItemRefresh, (LPARAM) &clmi); + Menu_ModifyItem(hMenuItemRefresh, &clmi); } } -- cgit v1.2.3