summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-09-17 12:29:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-09-17 12:29:30 +0000
commit5dc533256a87daab9e3b42b35614b411b189a985 (patch)
tree981ec24363a92b703eda6a72ad9969925a6ba235
parentb797c26e41a864d1a195b55d5ab191e87ddca762 (diff)
- 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
-rw-r--r--include/delphi/m_cluiframes.inc8
-rw-r--r--include/delphi/m_genmenu.inc17
-rw-r--r--include/m_cluiframes.h7
-rw-r--r--include/m_genmenu.h24
-rw-r--r--plugins/Alarms/src/options.cpp10
-rw-r--r--plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp28
-rw-r--r--plugins/Clist_modern/src/CLUIFrames/framesmenu.cpp7
-rw-r--r--plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp26
-rw-r--r--plugins/Clist_nicer/src/CLUIFrames/cluiframes.cpp22
-rw-r--r--plugins/Clist_nicer/src/CLUIFrames/framesmenu.cpp7
-rw-r--r--plugins/Clist_nicer/src/CLUIFrames/groupmenu.cpp18
-rw-r--r--protocols/Gadu-Gadu/src/image.cpp2
-rw-r--r--protocols/Yahoo/src/services.cpp2
13 files changed, 42 insertions, 136 deletions
diff --git a/include/delphi/m_cluiframes.inc b/include/delphi/m_cluiframes.inc
index 590c131cd9..e3996a88c3 100644
--- a/include/delphi/m_cluiframes.inc
+++ b/include/delphi/m_cluiframes.inc
@@ -219,14 +219,6 @@ const
MS_CLIST_ADDCONTEXTFRAMEMENUITEM:PAnsiChar = 'CList/AddContextFrameMenuItem';
{
- remove a item from context frame menu
- wParam=hMenuItem returned by MS_CLIST_ADDCONTACTMENUITEM
- lParam=0
- returns 0 on success, nonzero on failure
-}
- MS_CLIST_REMOVECONTEXTFRAMEMENUITEM:PAnsiChar = 'CList/RemoveContextFrameMenuItem';
-
-{
builds the context menu for a frame
wparam=frameid
lParam=0
diff --git a/include/delphi/m_genmenu.inc b/include/delphi/m_genmenu.inc
index 60e47b4241..0e7f495894 100644
--- a/include/delphi/m_genmenu.inc
+++ b/include/delphi/m_genmenu.inc
@@ -71,12 +71,10 @@ plugin may add different menu items with some service.
ME_CLIST_PREBUILDCONTACTMENU
MainMenu MS_CLIST_ADDMAINMENUITEM
- MS_CLIST_REMOVEMAINMENUITEM
MS_CLIST_MENUBUILDMAIN
ME_CLIST_PREBUILDMAINMENU
FrameMenu MS_CLIST_ADDCONTEXTFRAMEMENUITEM
- MS_CLIST_REMOVECONTEXTFRAMEMENUITEM
MS_CLIST_MENUBUILDFRAMECONTEXT
ME_CLIST_PREBUILDFRAMEMENU
@@ -90,14 +88,7 @@ plugin may add different menu items with some service.
const
{
SubGroup MENU
- remove a item from SubGroup menu
- wParam=hMenuItem returned by MS_CLIST_ADDSubGroupMENUITEM
- lParam=0
- returns 0 on success, nonzero on failure
-}
- MS_CLIST_REMOVESUBGROUPMENUITEM:PAnsiChar = 'CList/RemoveSubGroupMenuItem';
-{
builds the SubGroup menu
wParam=lParam=0
returns a HMENU identifying the menu.
@@ -129,14 +120,6 @@ type
const
{
- remove a item from Group menu
- wParam=hMenuItem returned by MS_CLIST_ADDGroupMENUITEM
- lParam=0
- returns 0 on success, nonzero on failure
-}
- MS_CLIST_REMOVEGROUPMENUITEM:PAnsiChar = 'CList/RemoveGroupMenuItem';
-
-{
builds the Group menu
wParam=lParam=0
returns a HMENU identifying the menu.
diff --git a/include/m_cluiframes.h b/include/m_cluiframes.h
index fa82cc4a8b..ec308ee9d2 100644
--- a/include/m_cluiframes.h
+++ b/include/m_cluiframes.h
@@ -237,13 +237,6 @@ __forceinline HGENMENU Menu_AddContextFrameMenuItem(CLISTMENUITEM *mi)
}
//////////////////////////////////////////////////////////////////////////
-//remove a item from context frame menu
-//wParam=hMenuItem returned by MS_CLIST_ADDCONTACTMENUITEM
-//lParam=0
-//returns 0 on success, nonzero on failure
-#define MS_CLIST_REMOVECONTEXTFRAMEMENUITEM "CList/RemoveContextFrameMenuItem"
-
-//////////////////////////////////////////////////////////////////////////
//builds the context menu for a frame
//wparam=frameid
//lParam=0
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index 1b126fca59..8d204b64c5 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -99,16 +99,12 @@ plugin may add different menu items with some service.
// SubGroup MENU
// Group MENU
-typedef struct{
-int wParam;
-int lParam;
-}GroupMenuParam,*lpGroupMenuParam;
-
-//remove a item from SubGroup menu
-//wParam=hMenuItem returned by MS_CLIST_ADDSubGroupMENUITEM
-//lParam=0
-//returns 0 on success, nonzero on failure
-#define MS_CLIST_REMOVESUBGROUPMENUITEM "CList/RemoveSubGroupMenuItem"
+typedef struct
+{
+ int wParam;
+ int lParam;
+}
+GroupMenuParam,*lpGroupMenuParam;
//builds the SubGroup menu
//wParam=lParam=0
@@ -128,11 +124,7 @@ __forceinline HGENMENU Menu_AddSubGroupMenuItem(lpGroupMenuParam gmp, CLISTMENUI
//wParam=lParam=0
#define ME_CLIST_PREBUILDSUBGROUPMENU "CList/PreBuildSubGroupMenu"
-//remove a item from Group menu
-//wParam=hMenuItem returned by MS_CLIST_ADDGROUPMENUITEM
-//lParam=0
-//returns 0 on success, nonzero on failure
-#define MS_CLIST_REMOVEGROUPMENUITEM "CList/RemoveGroupMenuItem"
+// Group MENU
//builds the Group menu
//wParam=lParam=0
@@ -152,8 +144,6 @@ __forceinline HGENMENU Menu_AddGroupMenuItem(lpGroupMenuParam gmp, CLISTMENUITEM
//wParam=lParam=0
#define ME_CLIST_PREBUILDGROUPMENU "CList/PreBuildGroupMenu"
-// Group MENU
-
// TRAY MENU
//builds the tray menu
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);
}
diff --git a/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp b/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp
index 599a4f9d88..aa5e376f25 100644
--- a/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp
+++ b/plugins/Clist_modern/src/CLUIFrames/cluiframes.cpp
@@ -3785,22 +3785,20 @@ int CLUIFrameOnModulesUnload(WPARAM wParam, LPARAM lParam)
if (!_hmiVisible)
return 0;
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiVisible, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiTBVisible, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiLock, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiColl, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiFloating, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiAlignTop, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiAlignClient, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiAlignBottom, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiBorder, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiAlignRoot, 0);
-
-
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiPosUp, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiPosDown, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)_hmiPosRoot, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiVisible, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiTBVisible, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiLock, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiColl, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiFloating, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiAlignTop, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiAlignClient, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiAlignBottom, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiBorder, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiAlignRoot, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiPosUp, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiPosDown, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiPosRoot, 0);
CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiVisible, 0);
CallService(MO_REMOVEMENUITEM, (LPARAM)_hmiTBVisible, 0);
diff --git a/plugins/Clist_modern/src/CLUIFrames/framesmenu.cpp b/plugins/Clist_modern/src/CLUIFrames/framesmenu.cpp
index d500d29286..8b1bf6af9e 100644
--- a/plugins/Clist_modern/src/CLUIFrames/framesmenu.cpp
+++ b/plugins/Clist_modern/src/CLUIFrames/framesmenu.cpp
@@ -45,12 +45,6 @@ static INT_PTR AddContextFrameMenuItem(WPARAM wParam, LPARAM lParam)
return CallService(MO_ADDNEWMENUITEM, (WPARAM)hFrameMenuObject, (LPARAM)&tmi);
}
-static INT_PTR RemoveContextFrameMenuItem(WPARAM wParam, LPARAM lParam)
-{
- CallService(MO_REMOVEMENUITEM, wParam, 0);
- return 0;
-}
-
//called with:
//wparam - ownerdata
//lparam - lparam from winproc
@@ -110,7 +104,6 @@ int InitFramesMenus(void)
CreateServiceFunction("FrameMenuCheckService", FrameMenuCheckService);
CreateServiceFunction("FrameMenuFreeService", FreeOwnerDataFrameMenu);
- CreateServiceFunction(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, RemoveContextFrameMenuItem);
CreateServiceFunction("CList/AddContextFrameMenuItem", AddContextFrameMenuItem);
CreateServiceFunction(MS_CLIST_MENUBUILDFRAMECONTEXT, BuildContextFrameMenu);
CreateServiceFunction(MS_CLIST_FRAMEMENUNOTIFY, ContextFrameMenuNotify);
diff --git a/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp b/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp
index 674d2f8b11..f4c35c0cb6 100644
--- a/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp
+++ b/plugins/Clist_modern/src/CLUIFrames/groupmenu.cpp
@@ -51,14 +51,6 @@ typedef struct
}
GroupMenuExecParam,*lpGroupMenuExecParam;
-//wparam = handle to the menu item returned by MS_CLIST_ADDCONTACTMENUITEM
-//return 0 on success.
-static INT_PTR RemoveGroupMenuItem(WPARAM wParam, LPARAM lParam)
-{
- CallService(MO_REMOVEMENUITEM,wParam,0);
- return 0;
-}
-
INT_PTR BuildGroupMenu(WPARAM wParam, LPARAM lParam)
{
ListParam param = { 0 };
@@ -234,7 +226,6 @@ void GroupMenus_Init(void)
CreateServiceFunction("CLISTMENUSGroup/CreateGroupHelper",CreateGroupHelper);
CreateServiceFunction("CList/AddGroupMenuItem",AddGroupMenuItem);
- CreateServiceFunction(MS_CLIST_REMOVEGROUPMENUITEM,RemoveGroupMenuItem);
CreateServiceFunction(MS_CLIST_MENUBUILDGROUP,BuildGroupMenu);
HookEvent(ME_CLIST_PREBUILDGROUPMENU,OnBuildGroupMenu);
@@ -336,20 +327,12 @@ HANDLE hSubGroupStatusMenuItemProxy;
HGENMENU hHideOfflineUsersHereMenuItem, hShowOfflineUsersHereMenuItem;
//SubGroupmenu exec param(ownerdata)
-typedef struct{
-char *szServiceName;
-int Param1,Param2;
-}SubGroupMenuExecParam,*lpSubGroupMenuExecParam;
-
-/*
-wparam = handle to the menu item returned by MS_CLIST_ADDCONTACTMENUITEM
-return 0 on success.
-*/
-static INT_PTR RemoveSubGroupMenuItem(WPARAM wParam, LPARAM lParam)
+typedef struct
{
- CallService(MO_REMOVEMENUITEM,wParam,0);
- return 0;
+ char *szServiceName;
+ int Param1, Param2;
}
+SubGroupMenuExecParam,*lpSubGroupMenuExecParam;
static int OnBuildSubGroupMenu(WPARAM wParam, LPARAM lParam)
{
@@ -501,7 +484,6 @@ void InitSubGroupMenus(void)
CreateServiceFunction("CLISTMENUSSubGroup/GroupMenuExecProxy",GroupMenuExecProxy);
CreateServiceFunction("CList/AddSubGroupMenuItem",AddSubGroupMenuItem);
- CreateServiceFunction(MS_CLIST_REMOVESUBGROUPMENUITEM,RemoveSubGroupMenuItem);
CreateServiceFunction(MS_CLIST_MENUBUILDSUBGROUP,BuildSubGroupMenu);
HookEvent(ME_CLIST_PREBUILDSUBGROUPMENU,OnBuildSubGroupMenu);
diff --git a/plugins/Clist_nicer/src/CLUIFrames/cluiframes.cpp b/plugins/Clist_nicer/src/CLUIFrames/cluiframes.cpp
index 6fe8fffc31..53f13990c4 100644
--- a/plugins/Clist_nicer/src/CLUIFrames/cluiframes.cpp
+++ b/plugins/Clist_nicer/src/CLUIFrames/cluiframes.cpp
@@ -3109,17 +3109,17 @@ static int CLUIFrameOnModulesUnload(WPARAM wParam, LPARAM lParam)
WaitForSingleObject(hThreadMFUpdate, 2000);
CloseHandle(g_hEventThread);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIVisible, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMITitle, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMITBVisible, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMILock, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIColl, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIFloating, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIAlignRoot, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIAlignTop, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIAlignClient, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIAlignBottom, 0);
- CallService(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, (LPARAM)contMIBorder, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIVisible, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMITitle, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMITBVisible, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMILock, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIColl, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIFloating, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIAlignRoot, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIAlignTop, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIAlignClient, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIAlignBottom, 0);
+ CallService(MO_REMOVEMENUITEM, (LPARAM)contMIBorder, 0);
return 0;
}
diff --git a/plugins/Clist_nicer/src/CLUIFrames/framesmenu.cpp b/plugins/Clist_nicer/src/CLUIFrames/framesmenu.cpp
index 8b2f6987b1..0169a29957 100644
--- a/plugins/Clist_nicer/src/CLUIFrames/framesmenu.cpp
+++ b/plugins/Clist_nicer/src/CLUIFrames/framesmenu.cpp
@@ -45,12 +45,6 @@ static INT_PTR AddContextFrameMenuItem(WPARAM wParam, LPARAM lParam)
return CallService(MO_ADDNEWMENUITEM, (WPARAM)hFrameMenuObject, (LPARAM)&tmi);
}
-static INT_PTR RemoveContextFrameMenuItem(WPARAM wParam, LPARAM lParam)
-{
- CallService(MO_REMOVEMENUITEM, wParam, 0);
- return 0;
-}
-
//called with:
//wparam - ownerdata
//lparam - lparam from winproc
@@ -111,7 +105,6 @@ int InitFramesMenus(void)
CreateServiceFunction("FrameMenuCheckService", FrameMenuCheckService);
CreateServiceFunction("FrameMenuFreeService", FreeOwnerDataFrameMenu);
- CreateServiceFunction(MS_CLIST_REMOVECONTEXTFRAMEMENUITEM, RemoveContextFrameMenuItem);
CreateServiceFunction("CList/AddContextFrameMenuItem", AddContextFrameMenuItem);
CreateServiceFunction(MS_CLIST_MENUBUILDFRAMECONTEXT, BuildContextFrameMenu);
CreateServiceFunction(MS_CLIST_FRAMEMENUNOTIFY, ContextFrameMenuNotify);
diff --git a/plugins/Clist_nicer/src/CLUIFrames/groupmenu.cpp b/plugins/Clist_nicer/src/CLUIFrames/groupmenu.cpp
index 59ce2d1064..f4c8b2ed89 100644
--- a/plugins/Clist_nicer/src/CLUIFrames/groupmenu.cpp
+++ b/plugins/Clist_nicer/src/CLUIFrames/groupmenu.cpp
@@ -51,14 +51,6 @@ typedef struct {
int Param1,Param2;
} GroupMenuExecParam, *lpGroupMenuExecParam;
-//wparam = handle to the menu item returned by MS_CLIST_ADDCONTACTMENUITEM
-//return 0 on success.
-static INT_PTR RemoveGroupMenuItem(WPARAM wParam, LPARAM lParam)
-{
- CallService(MO_REMOVEMENUITEM, wParam, 0);
- return 0;
-}
-
static INT_PTR BuildGroupMenu(WPARAM wParam, LPARAM lParam)
{
int tick;
@@ -248,7 +240,6 @@ void InitGroupMenus(void)
CreateServiceFunction("CLISTMENUSGroup/HideOfflineRootHelper", HideOfflineRootHelper);
CreateServiceFunction("CList/AddGroupMenuItem", AddGroupMenuItem);
- CreateServiceFunction(MS_CLIST_REMOVEGROUPMENUITEM, RemoveGroupMenuItem);
CreateServiceFunction(MS_CLIST_MENUBUILDGROUP, BuildGroupMenu);
hPreBuildGroupMenuEvent = CreateHookableEvent(ME_CLIST_PREBUILDGROUPMENU);
HookEvent(ME_CLIST_PREBUILDGROUPMENU, OnBuildGroupMenu);
@@ -387,14 +378,6 @@ typedef struct {
int Param1, Param2;
} SubGroupMenuExecParam, *lpSubGroupMenuExecParam;
-//wparam = handle to the menu item returned by MS_CLIST_ADDCONTACTMENUITEM
-//return 0 on success.
-static INT_PTR RemoveSubGroupMenuItem(WPARAM wParam, LPARAM lParam)
-{
- CallService(MO_REMOVEMENUITEM, wParam, 0);
- return 0;
-}
-
static int OnBuildSubGroupMenu(WPARAM wParam, LPARAM lParam)
{
ClcGroup *group = (ClcGroup *)wParam;
@@ -532,7 +515,6 @@ void InitSubGroupMenus(void)
//CreateServiceFunction("CLISTMENUSSubGroup/HideOfflineRootHelper", HideOfflineRootHelper);
CreateServiceFunction("CList/AddSubGroupMenuItem", AddSubGroupMenuItem);
- CreateServiceFunction(MS_CLIST_REMOVESUBGROUPMENUITEM, RemoveSubGroupMenuItem);
CreateServiceFunction(MS_CLIST_MENUBUILDSUBGROUP, BuildSubGroupMenu);
hPreBuildSubGroupMenuEvent = CreateHookableEvent(ME_CLIST_PREBUILDSUBGROUPMENU);
HookEvent(ME_CLIST_PREBUILDSUBGROUPMENU, OnBuildSubGroupMenu);
diff --git a/protocols/Gadu-Gadu/src/image.cpp b/protocols/Gadu-Gadu/src/image.cpp
index 4f9d8f3d5a..6d0a6899f6 100644
--- a/protocols/Gadu-Gadu/src/image.cpp
+++ b/protocols/Gadu-Gadu/src/image.cpp
@@ -127,7 +127,7 @@ int GGPROTO::img_destroy()
// Destroy list
list_destroy(imagedlgs, 1);
- CallService(MO_REMOVEMENUITEM, (WPARAM)hImageMenuItem, (LPARAM) 0);
+ CallService(MO_REMOVEMENUITEM, (WPARAM)hImageMenuItem, 0);
return FALSE;
}
diff --git a/protocols/Yahoo/src/services.cpp b/protocols/Yahoo/src/services.cpp
index f334bd517d..5fd99f9c6e 100644
--- a/protocols/Yahoo/src/services.cpp
+++ b/protocols/Yahoo/src/services.cpp
@@ -487,7 +487,7 @@ void CYahooProto::MenuContactInit( void )
void CYahooProto::MenuUninit( void )
{
- if ( mainMenuRoot )
+ if (mainMenuRoot)
CallService(MO_REMOVEMENUITEM, (WPARAM)mainMenuRoot, 0);
CallService(MO_REMOVEMENUITEM, (WPARAM)hShowProfileMenuItem, 0);