From 06bb38dfa357a731e16980d03ab100b84e5cb989 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 25 Jun 2015 21:53:56 +0000 Subject: MS_CLUI_GETHWND & MS_CLUI_GETHWNDTREE replaced with pcli->hwndContactList & pcli->hwndContactTree respectively git-svn-id: http://svn.miranda-ng.org/main/trunk@14386 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ZeroSwitch/src/ZeroSwitch.cpp | 4 +++- plugins/ZeroSwitch/src/stdafx.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/ZeroSwitch') diff --git a/plugins/ZeroSwitch/src/ZeroSwitch.cpp b/plugins/ZeroSwitch/src/ZeroSwitch.cpp index 20dd9d86d7..651eb7ff77 100644 --- a/plugins/ZeroSwitch/src/ZeroSwitch.cpp +++ b/plugins/ZeroSwitch/src/ZeroSwitch.cpp @@ -7,6 +7,7 @@ HINSTANCE hInst; HHOOK hHook; HWND hDummyWnd = NULL, hHelperWnd = NULL, hMirandaWnd = NULL; int hLangpack; +CLIST_INTERFACE *pcli; PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), @@ -113,7 +114,7 @@ LRESULT CALLBACK CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam) { pMes = (PCWPRETSTRUCT)lParam; // Get message details if (!hMirandaWnd) - hMirandaWnd = (HWND) CallService(MS_CLUI_GETHWND,0,0);//FindWindow(_T("Miranda"), NULL); + hMirandaWnd = pcli->hwndContactList; if (pMes->hwnd == hMirandaWnd) { @@ -132,6 +133,7 @@ LRESULT CALLBACK CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam) extern "C" int __declspec(dllexport) Load(void) { mir_getLP(&pluginInfo); + mir_getCLI(); if (IsWinVerVistaPlus()) { MessageBox(NULL, TranslateT("Plugin works under Windows XP only"), TranslateT("ZeroSwitch plugin failed"), MB_ICONSTOP); diff --git a/plugins/ZeroSwitch/src/stdafx.h b/plugins/ZeroSwitch/src/stdafx.h index 2531d2596b..8f36ebb340 100644 --- a/plugins/ZeroSwitch/src/stdafx.h +++ b/plugins/ZeroSwitch/src/stdafx.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3