diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-21 09:38:59 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-09-21 09:38:59 +0000 |
commit | e7be294a1f1f545836dd07588be572c8534b6232 (patch) | |
tree | 71deb182395745e472e2129f23363c0cbeb65bb3 /plugins/Clist_nicer/src/Docking.cpp | |
parent | 74168df7bc11d5417542681c7192ed492ef14b95 (diff) |
using Uxtheme in nicer
git-svn-id: http://svn.miranda-ng.org/main/trunk@6146 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/Docking.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/Docking.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/Clist_nicer/src/Docking.cpp b/plugins/Clist_nicer/src/Docking.cpp index e821ed4118..98afde8379 100644 --- a/plugins/Clist_nicer/src/Docking.cpp +++ b/plugins/Clist_nicer/src/Docking.cpp @@ -1,5 +1,4 @@ /*
-
Miranda IM: the free IM client for Microsoft* Windows*
Copyright 2000-2003 Miranda ICQ/IM project,
@@ -38,15 +37,13 @@ extern RECT cluiPos; static void Docking_GetMonitorRectFromPoint(POINT pt, RECT *rc)
{
- if ( API::pfnMonitorFromPoint ) {
- MONITORINFO monitorInfo;
- HMONITOR hMonitor = API::pfnMonitorFromPoint(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 ( API::pfnGetMonitorInfo( hMonitor, &monitorInfo )) {
- CopyMemory(rc, &monitorInfo.rcMonitor, sizeof(RECT));
- return;
- }
+ if (GetMonitorInfo(hMonitor, &monitorInfo)) {
+ CopyMemory(rc, &monitorInfo.rcMonitor, sizeof(RECT));
+ return;
}
// "generic" win95/NT support, also serves as failsafe
|