summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-05 23:13:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-05 23:13:56 +0000
commit4810d4b1b7a47701b8e6c45490fb2643ea425123 (patch)
treefb94dd5889fdd0558605ffe738f0b2d6d2f08ca2 /plugins/AutoShutdown/src
parent007b4c7301f0d26a72f89f74e9929f42e24eb3e6 (diff)
rest of menu cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4325 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AutoShutdown/src')
-rw-r--r--plugins/AutoShutdown/src/settingsdlg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp
index c26d570aa0..05ed98263d 100644
--- a/plugins/AutoShutdown/src/settingsdlg.cpp
+++ b/plugins/AutoShutdown/src/settingsdlg.cpp
@@ -427,7 +427,7 @@ void SetShutdownToolbarButton(BOOL fActive)
/************************* Menu Item **********************************/
-static HANDLE hMainMenuItem,hTrayMenuItem;
+static HGENMENU hMainMenuItem,hTrayMenuItem;
void SetShutdownMenuItem(BOOL fActive)
{
@@ -440,7 +440,7 @@ void SetShutdownMenuItem(BOOL fActive)
mi.flags = CMIF_TCHAR | CMIF_ICONFROMICOLIB;
if (hMainMenuItem != NULL) {
mi.flags |= CMIM_NAME | CMIM_ICON;
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMainMenuItem, (LPARAM)&mi);
+ Menu_ModifyItem(hMainMenuItem, &mi);
}
else hMainMenuItem = Menu_AddMainMenuItem(&mi);
@@ -448,7 +448,7 @@ void SetShutdownMenuItem(BOOL fActive)
mi.position = 899999;
if(hTrayMenuItem != NULL) {
mi.flags |= CMIM_NAME | CMIM_ICON;
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hTrayMenuItem, (LPARAM)&mi);
+ Menu_ModifyItem(hTrayMenuItem, &mi);
}
else hTrayMenuItem = Menu_AddTrayMenuItem(&mi);