From 5dc533256a87daab9e3b42b35614b411b189a985 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 17 Sep 2014 12:29:30 +0000 Subject: - MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, MS_CLIST_REMOVESUBGROUPMENUITEM & MS_CLIST_REMOVEGROUPMENUITEM removed; - minor code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@10496 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Alarms/src/options.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Alarms') diff --git a/plugins/Alarms/src/options.cpp b/plugins/Alarms/src/options.cpp index cbe83b4e09..b7baf46e20 100644 --- a/plugins/Alarms/src/options.cpp +++ b/plugins/Alarms/src/options.cpp @@ -17,7 +17,7 @@ typedef struct AddEditParam_tag { BOOL self_add; } AddEditParam; -HANDLE hMainMenuItem = 0, hGroupMenuItem; +HGENMENU hMainMenuItem = 0; // store options dialog window handle statically so it can be refreshed by non-modal add alarm dialog HWND hwndOptionsDialog = 0; @@ -700,10 +700,10 @@ void AddMenuItem() mi.position = 500010000; if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) mi.pszPopupName = "Alarms"; - if (ServiceExists(MS_CLIST_REMOVEGROUPMENUITEM)) { - GroupMenuParam gmp = {0}; - hGroupMenuItem = Menu_AddGroupMenuItem(&gmp, &mi); - } + + GroupMenuParam gmp = {0}; + Menu_AddGroupMenuItem(&gmp, &mi); + hMainMenuItem = Menu_AddMainMenuItem(&mi); } -- cgit v1.2.3