summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-24 19:25:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-24 19:25:05 +0300
commite84e1506adf6f0b65bab0bc5e243f6497749b7c4 (patch)
treeab529b452c9371dabc29d085c3c4630c9400d9ae /plugins/TabSRMM/src/msgs.cpp
parent026adc1f0c2e30b2e21ac66f1af8b32485bc9bf2 (diff)
more unused shit cleaned
Diffstat (limited to 'plugins/TabSRMM/src/msgs.cpp')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index d83ae79efc..cf07478788 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -403,15 +403,15 @@ static INT_PTR ReloadSettings(WPARAM, LPARAM lParam)
// 0 if there is none (or the popup mode of the target container was configured to "hide"
// the window..
-INT_PTR MessageWindowOpened(WPARAM wParam, LPARAM lParam)
+int TSAPI MessageWindowOpened(MCONTACT hContact, HWND _hwnd)
{
HWND hwnd = 0;
TContainerData *pContainer = nullptr;
- if (wParam)
- hwnd = M.FindWindow(wParam);
- else if (lParam)
- hwnd = (HWND)lParam;
+ if (hContact)
+ hwnd = M.FindWindow(hContact);
+ else if (_hwnd)
+ hwnd = _hwnd;
else
return 0;
@@ -1108,8 +1108,6 @@ static void TSAPI InitAPI()
CreateServiceFunction(MS_TABMSG_TRAYSUPPORT, Service_OpenTrayMenu);
CreateServiceFunction(MS_TABMSG_SLQMGR, CSendLater::svcQMgr);
- CreateServiceFunction(MS_MSG_MOD_MESSAGEDIALOGOPENED, MessageWindowOpened);
-
CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage);
CreateServiceFunction("TabSRMsg/ReloadSkin", ReloadSkin);
CreateServiceFunction("TabSRMsg/ReloadSettings", ReloadSettings);