From bcdf15018dd56e91974d3723d2a7013ff3dcd699 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 23 May 2015 14:27:30 +0000 Subject: ZeroSwitch: - Better way to get Miranda's HWND git-svn-id: http://svn.miranda-ng.org/main/trunk@13774 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ZeroSwitch/src/ZeroSwitch.cpp | 2 +- plugins/ZeroSwitch/src/stdafx.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/ZeroSwitch/src/ZeroSwitch.cpp b/plugins/ZeroSwitch/src/ZeroSwitch.cpp index 30261ee18a..37a2b7daa5 100644 --- a/plugins/ZeroSwitch/src/ZeroSwitch.cpp +++ b/plugins/ZeroSwitch/src/ZeroSwitch.cpp @@ -113,7 +113,7 @@ LRESULT CALLBACK CallWndRetProc(int nCode, WPARAM wParam, LPARAM lParam) { pMes = (PCWPRETSTRUCT)lParam; // Get message details if (!hMirandaWnd) - hMirandaWnd = FindWindow(_T("Miranda"), NULL); + hMirandaWnd = (HWND) CallService(MS_CLUI_GETHWND,0,0);//FindWindow(_T("Miranda"), NULL); if (pMes->hwnd == hMirandaWnd) { diff --git a/plugins/ZeroSwitch/src/stdafx.h b/plugins/ZeroSwitch/src/stdafx.h index f5502963ee..2531d2596b 100644 --- a/plugins/ZeroSwitch/src/stdafx.h +++ b/plugins/ZeroSwitch/src/stdafx.h @@ -10,6 +10,7 @@ #include #include +#include #include #include -- cgit v1.2.3