diff options
Diffstat (limited to 'plugins/ZeroSwitch/src')
-rw-r--r-- | plugins/ZeroSwitch/src/ZeroSwitch.cpp | 4 | ||||
-rw-r--r-- | plugins/ZeroSwitch/src/stdafx.h | 1 |
2 files changed, 4 insertions, 1 deletions
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 <newpluginapi.h>
#include <m_clist.h>
#include <m_clui.h>
+#include <m_clistint.h>
#include <m_skin.h>
#include <m_langpack.h>
|