summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-05-23 14:27:30 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-05-23 14:27:30 +0000
commitbcdf15018dd56e91974d3723d2a7013ff3dcd699 (patch)
tree70bd43ce26960201eaa6c51423180fbcef9a5022 /plugins
parent29bf1ac3e69292a27a74add40ad2b969f299193c (diff)
ZeroSwitch:
- Better way to get Miranda's HWND git-svn-id: http://svn.miranda-ng.org/main/trunk@13774 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ZeroSwitch/src/ZeroSwitch.cpp2
-rw-r--r--plugins/ZeroSwitch/src/stdafx.h1
2 files changed, 2 insertions, 1 deletions
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 <newpluginapi.h>
#include <m_clist.h>
+#include <m_clui.h>
#include <m_skin.h>
#include <m_langpack.h>