summaryrefslogtreecommitdiff
path: root/plugins/Alarms/frame.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-14 15:51:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-14 15:51:34 +0000
commite58823d961a630eb62e60d2ccb443761ba5f1704 (patch)
tree62d071be480d57af2a53f154a1468abe0b9449ff /plugins/Alarms/frame.cpp
parent721aea0764451e985d575236205808bbef298244 (diff)
- all MS_CLIST_ADD*ITEM services replaced with Menu_Add*Item stubs.
- massive cleanup of the menu-related code git-svn-id: http://svn.miranda-ng.org/main/trunk@410 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/frame.cpp')
-rw-r--r--plugins/Alarms/frame.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Alarms/frame.cpp b/plugins/Alarms/frame.cpp
index e298cae41d..cc36c3bc86 100644
--- a/plugins/Alarms/frame.cpp
+++ b/plugins/Alarms/frame.cpp
@@ -567,17 +567,17 @@ int CreateFrame()
// create menu item
CreateServiceFunction(MODULE "/ShowHideReminders", ShowHideMenuFunc);
- CLISTMENUITEM menu = {0};
+ CLISTMENUITEM mi = {0};
- menu.cbSize=sizeof(menu);
- menu.flags = CMIM_ALL;
+ mi.cbSize=sizeof(mi);
+ mi.flags = CMIM_ALL;
- menu.hIcon=hIconMenuShowHide;
- menu.pszName = Translate("Show Reminders");
- menu.pszService= MODULE "/ShowHideReminders";
- menu.pszPopupName = Translate("Alarms");
- menu.position = 500010000;
- hMenuShowReminders = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM)&menu);
+ mi.hIcon=hIconMenuShowHide;
+ mi.pszName = Translate("Show Reminders");
+ mi.pszService= MODULE "/ShowHideReminders";
+ mi.pszPopupName = Translate("Alarms");
+ mi.position = 500010000;
+ hMenuShowReminders = Menu_AddMainMenuItem(&mi);
/////////////////////
if (!options.auto_showhide) {