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/SimpleAR/src/Main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SimpleAR') diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp index c3f4337efb..94032d97d8 100644 --- a/plugins/SimpleAR/src/Main.cpp +++ b/plugins/SimpleAR/src/Main.cpp @@ -19,7 +19,7 @@ Copyright (C) 2000-2 Richard Hughes, Roland Rabien & Tristan Van de Vreede HINSTANCE hinstance; HANDLE hPreBuildHook = NULL, hAddEventHook = NULL, hOptHook = NULL, hCheckDefHook = NULL, hOnPreShutdown = NULL, hToggleEnable = NULL, hToggleAutoanswer = NULL; -HANDLE hToggle = NULL, hEnableMenu = NULL; +HGENMENU hToggle, hEnableMenu; BOOL fEnabled, gbVarsServiceExist = FALSE; INT interval; int hLangpack; @@ -71,7 +71,7 @@ INT_PTR ToggleEnable(WPARAM wParam, LPARAM lParam) mi.ptszName = LPGENT("Enable Auto&reply"); mi.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(IDI_OFF)); } - CallService(MS_CLIST_MODIFYMENUITEM,(WPARAM)hEnableMenu,(LPARAM)&mi); + Menu_ModifyItem(hEnableMenu, &mi); return 0; } @@ -87,7 +87,7 @@ INT_PTR Toggle(WPARAM w, LPARAM l) mi.flags = CMIM_NAME |CMIM_ICON | CMIF_TCHAR; mi.ptszName = on ? LPGENT("Turn off Autoanswer") : LPGENT("Turn on Autoanswer"); mi.hIcon = on ? LoadIcon(hinstance, MAKEINTRESOURCE(IDI_OFF)) : LoadIcon(hinstance, MAKEINTRESOURCE(IDI_ON)); - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hToggle, (LPARAM)&mi); + Menu_ModifyItem(hToggle, &mi); return 0; } @@ -100,7 +100,7 @@ INT OnPreBuildContactMenu(WPARAM w, LPARAM l) BOOL on = !db_get_b(hContact, protocolname, "TurnedOn", 0); mi.ptszName = on ? LPGENT("Turn off Autoanswer") : LPGENT("Turn on Autoanswer"); mi.hIcon = on?LoadIcon(hinstance, MAKEINTRESOURCE(IDI_OFF)):LoadIcon(hinstance, MAKEINTRESOURCE(IDI_ON)); - CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hToggle, (LPARAM)&mi); + Menu_ModifyItem(hToggle, &mi); return 0; } -- cgit v1.2.3