diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-05 23:13:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-05 23:13:56 +0000 |
commit | 4810d4b1b7a47701b8e6c45490fb2643ea425123 (patch) | |
tree | fb94dd5889fdd0558605ffe738f0b2d6d2f08ca2 /plugins/ListeningTo | |
parent | 007b4c7301f0d26a72f89f74e9929f42e24eb3e6 (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/ListeningTo')
-rw-r--r-- | plugins/ListeningTo/src/commons.h | 2 | ||||
-rw-r--r-- | plugins/ListeningTo/src/listeningto.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ListeningTo/src/commons.h b/plugins/ListeningTo/src/commons.h index 548dd4becd..60225f3304 100644 --- a/plugins/ListeningTo/src/commons.h +++ b/plugins/ListeningTo/src/commons.h @@ -91,7 +91,7 @@ struct ProtocolInfo {
char proto[128];
TCHAR account[128];
- HANDLE hMenu;
+ HGENMENU hMenu;
int old_xstatus;
TCHAR old_xstatus_name[1024];
TCHAR old_xstatus_message[1024];
diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 9c20374202..6e82365846 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -161,7 +161,7 @@ void UpdateGlobalStatusMenus() clmi.flags = CMIM_FLAGS
| (enabled ? CMIF_CHECKED : 0)
| (opts.enable_sending ? 0 : CMIF_GRAYED);
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) proto_items[0].hMenu, (LPARAM) &clmi);
+ Menu_ModifyItem(proto_items[0].hMenu, &clmi);
if (hTTB != NULL)
CallService(MS_TTB_SETBUTTONSTATE, (WPARAM) hTTB, (LPARAM) (enabled ? TTBST_PUSHED : TTBST_RELEASED));
@@ -246,7 +246,7 @@ int AccListChanged(WPARAM wParam, LPARAM lParam) CLISTMENUITEM clmi = { sizeof(clmi) };
clmi.flags = CMIM_NAME | CMIF_TCHAR;
clmi.ptszName = text;
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) info->hMenu, (LPARAM) &clmi);
+ Menu_ModifyItem(info->hMenu, &clmi);
}
else if (wParam == PRAC_REMOVED || (wParam == PRAC_CHECKED && !proto->bIsEnabled))
{
@@ -762,7 +762,7 @@ INT_PTR EnableListeningTo(char *proto,BOOL enabled) clmi.flags = CMIM_FLAGS
| (enabled ? CMIF_CHECKED : 0)
| (opts.enable_sending ? 0 : CMIF_GRAYED);
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM) info->hMenu, (LPARAM) &clmi);
+ Menu_ModifyItem(info->hMenu, &clmi);
SetListeningInfo(proto,(opts.enable_sending && enabled) ? GetListeningInfo() : NULL);
}
|