From 4e0aef28194077beaaaa07775f819c3a4cf934e9 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 21 Sep 2013 15:49:11 +0000 Subject: using Uxtheme in core git-svn-id: http://svn.miranda-ng.org/main/trunk@6158 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/Docking.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/modules/clist/Docking.cpp') diff --git a/src/modules/clist/Docking.cpp b/src/modules/clist/Docking.cpp index 323ca4829d..2186e5237c 100644 --- a/src/modules/clist/Docking.cpp +++ b/src/modules/clist/Docking.cpp @@ -36,17 +36,14 @@ static POINT dockPos; static void Docking_GetMonitorRectFromPoint(LPPOINT pt, LPRECT rc) { - if (MyMonitorFromPoint) - { - MONITORINFO monitorInfo; - HMONITOR hMonitor = MyMonitorFromPoint(*pt, MONITOR_DEFAULTTONEAREST); // always returns a valid value - monitorInfo.cbSize = sizeof(monitorInfo); + MONITORINFO monitorInfo; + HMONITOR hMonitor = MonitorFromPoint(*pt, MONITOR_DEFAULTTONEAREST); // always returns a valid value + monitorInfo.cbSize = sizeof(monitorInfo); - if (MyGetMonitorInfo(hMonitor, &monitorInfo)) - { - *rc = monitorInfo.rcMonitor; - return; - } + if (GetMonitorInfo(hMonitor, &monitorInfo)) + { + *rc = monitorInfo.rcMonitor; + return; } // "generic" win95/NT support, also serves as failsafe -- cgit v1.2.3