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/ListeningTo/src/commons.h | 2 +- plugins/ListeningTo/src/listeningto.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ListeningTo') diff --git a/plugins/ListeningTo/src/commons.h b/plugins/ListeningTo/src/commons.h index 548dd4becd..60225f3304 100644 --- a/plugins/ListeningTo/src/commons.h +++ b/plugins/ListeningTo/src/commons.h @@ -91,7 +91,7 @@ struct ProtocolInfo { char proto[128]; TCHAR account[128]; - HANDLE hMenu; + HGENMENU hMenu; int old_xstatus; TCHAR old_xstatus_name[1024]; TCHAR old_xstatus_message[1024]; diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 9c20374202..6e82365846 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -161,7 +161,7 @@ void UpdateGlobalStatusMenus() clmi.flags = CMIM_FLAGS | (enabled ? CMIF_CHECKED : 0) | (opts.enable_sending ? 0 : CMIF_GRAYED); - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) proto_items[0].hMenu, (LPARAM) &clmi); + Menu_ModifyItem(proto_items[0].hMenu, &clmi); if (hTTB != NULL) CallService(MS_TTB_SETBUTTONSTATE, (WPARAM) hTTB, (LPARAM) (enabled ? TTBST_PUSHED : TTBST_RELEASED)); @@ -246,7 +246,7 @@ int AccListChanged(WPARAM wParam, LPARAM lParam) CLISTMENUITEM clmi = { sizeof(clmi) }; clmi.flags = CMIM_NAME | CMIF_TCHAR; clmi.ptszName = text; - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) info->hMenu, (LPARAM) &clmi); + Menu_ModifyItem(info->hMenu, &clmi); } else if (wParam == PRAC_REMOVED || (wParam == PRAC_CHECKED && !proto->bIsEnabled)) { @@ -762,7 +762,7 @@ INT_PTR EnableListeningTo(char *proto,BOOL enabled) clmi.flags = CMIM_FLAGS | (enabled ? CMIF_CHECKED : 0) | (opts.enable_sending ? 0 : CMIF_GRAYED); - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) info->hMenu, (LPARAM) &clmi); + Menu_ModifyItem(info->hMenu, &clmi); SetListeningInfo(proto,(opts.enable_sending && enabled) ? GetListeningInfo() : NULL); } -- cgit v1.2.3