diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-08 17:08:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-08 17:08:57 +0000 |
commit | 042d05df11513eb57c0f92c95113f65c73755833 (patch) | |
tree | f3b3053806f489da29ba015f3fd5642479a04e1f /plugins/Clist_modern/src/CLUIFrames | |
parent | 07d60a35c1e1f2ca033589977fcffa61bf9c8b85 (diff) |
tray menu code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@11276 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/CLUIFrames')
-rw-r--r-- | plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp b/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp index f4c35c0cb6..64108e57ac 100644 --- a/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp +++ b/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp @@ -53,26 +53,20 @@ typedef struct INT_PTR BuildGroupMenu(WPARAM wParam, LPARAM lParam)
{
- ListParam param = { 0 };
- param.MenuObjectHandle = hGroupMenuObject;
+ NotifyEventHooks(g_CluiData.hEventPreBuildGroupMenu, 0, 0);
- //hMenu = hMainMenu;
HMENU hMenu = CreatePopupMenu();
- //hMenu = wParam;
- int tick = GetTickCount();
- NotifyEventHooks(g_CluiData.hEventPreBuildGroupMenu, 0, 0);
-
- CallService(MO_BUILDMENU,(WPARAM)hMenu,(LPARAM)¶m);
- //DrawMenuBar((HWND)CallService("CLUI/GetHwnd", 0, 0));
- tick = GetTickCount()-tick;
+ ListParam param = { 0 };
+ param.MenuObjectHandle = hGroupMenuObject;
+ CallService(MO_BUILDMENU, (WPARAM)hMenu, (LPARAM)¶m);
return (INT_PTR)hMenu;
}
static INT_PTR AddGroupMenuItem(WPARAM wParam, LPARAM lParam)
{
- TMO_MenuItem tmi;
CLISTMENUITEM *mi = (CLISTMENUITEM*)lParam;
+ TMO_MenuItem tmi;
if (!pcli->pfnConvertMenu(mi, &tmi))
return NULL;
@@ -363,27 +357,20 @@ static int OnBuildSubGroupMenu(WPARAM wParam, LPARAM lParam) INT_PTR BuildSubGroupMenu(WPARAM wParam, LPARAM lParam)
{
+ NotifyEventHooks(g_CluiData.hEventPreBuildSubGroupMenu, wParam, 0);
+
ListParam param = { 0 };
param.MenuObjectHandle = hSubGroupMenuObject;
param.wParam = wParam;
param.lParam = lParam;
- //hMenu = hMainMenu;
HMENU hMenu = CreatePopupMenu();
- //hMenu = wParam;
- int tick = GetTickCount();
-
- NotifyEventHooks(g_CluiData.hEventPreBuildSubGroupMenu,wParam,0);
-
CallService(MO_BUILDMENU,(WPARAM)hMenu,(LPARAM)¶m);
- //DrawMenuBar((HWND)CallService("CLUI/GetHwnd", 0, 0));
- tick = GetTickCount()-tick;
return (INT_PTR)hMenu;
}
HMENU cliBuildGroupPopupMenu(ClcGroup *group)
{
- //HWND wnd = GetForegroundWindow();
return (HMENU)CallService(MS_CLIST_MENUBUILDSUBGROUP,(WPARAM)group,0);
}
|