From adca17ccaecda72c8dd1234f1a7b91a0d5aff564 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 Jun 2015 12:23:28 +0000 Subject: another portion of dead genmenu services git-svn-id: http://svn.miranda-ng.org/main/trunk@14377 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AddContactPlus/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/AddContactPlus/src/main.cpp') diff --git a/plugins/AddContactPlus/src/main.cpp b/plugins/AddContactPlus/src/main.cpp index 4b63376b7e..96fcff53bf 100644 --- a/plugins/AddContactPlus/src/main.cpp +++ b/plugins/AddContactPlus/src/main.cpp @@ -18,12 +18,14 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + #include "stdafx.h" CLIST_INTERFACE *pcli; HINSTANCE hInst; int hLangpack; -static HANDLE hMainMenuItem = 0, hToolBarItem = 0; +static HANDLE hToolBarItem = 0; +static HGENMENU hMainMenuItem = 0; HWND hAddDlg; static IconItem icon = { LPGEN("Add contact"), ICON_ADD, IDI_ADDCONTACT }; @@ -102,7 +104,7 @@ static int OnAccListChanged(WPARAM, LPARAM) if (!hMainMenuItem) return 0; - CallService(MO_REMOVEMENUITEM, (WPARAM)hMainMenuItem, 0); + Menu_RemoveItem(hMainMenuItem); CallService(MS_TTB_REMOVEBUTTON, (WPARAM)hToolBarItem, 0); hMainMenuItem = 0; } -- cgit v1.2.3