From b1aa45306c53a56574f2e5e0113db536a4b7d421 Mon Sep 17 00:00:00 2001 From: sje Date: Tue, 30 Jan 2007 15:35:03 +0000 Subject: dynamic load of GetMonitorInfo func - also unavailable on NT4 (thx George) git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@94 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/popwin.cpp | 4 +++- yapp/version.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'yapp') diff --git a/yapp/popwin.cpp b/yapp/popwin.cpp index 4edb028..cb20dc1 100644 --- a/yapp/popwin.cpp +++ b/yapp/popwin.cpp @@ -8,6 +8,7 @@ HMODULE hUserDll; BOOL (WINAPI *MySetLayeredWindowAttributes)(HWND,COLORREF,BYTE,DWORD) = 0; BOOL (WINAPI *MyAnimateWindow)(HWND hWnd,DWORD dwTime,DWORD dwFlags) = 0; HMONITOR (WINAPI *MyMonitorFromRect)(LPCRECT rect, DWORD flags) = 0; +BOOL (WINAPI *MyGetMonitorInfo)(HMONITOR hMonitor, LPMONITORINFO mi) = 0; #define ID_CLOSETIMER 0x0101 #define ID_MOVETIMER 0x0102 @@ -17,7 +18,7 @@ int global_mouse_in = 0; void SetStartValues() { RECT wa_rect; - if(options.use_mim_monitor && MyMonitorFromRect) { + if(options.use_mim_monitor && MyMonitorFromRect && MyGetMonitorInfo) { RECT clr; HMONITOR hMonitor; GetWindowRect((HWND)CallService(MS_CLUI_GETHWND, 0, 0), &clr); @@ -728,6 +729,7 @@ void InitWindowStack() { MySetLayeredWindowAttributes = (BOOL (WINAPI *)(HWND,COLORREF,BYTE,DWORD))GetProcAddress(hUserDll, "SetLayeredWindowAttributes"); MyAnimateWindow=(BOOL (WINAPI*)(HWND,DWORD,DWORD))GetProcAddress(hUserDll,"AnimateWindow"); MyMonitorFromRect=(HMONITOR (WINAPI*)(LPCRECT,DWORD))GetProcAddress(hUserDll, "MonitorFromRect"); + MyGetMonitorInfo=(BOOL (WINAPI*)(HMONITOR,LPMONITORINFO))GetProcAddress(hUserDll, "GetMonitorInfo"); } } diff --git a/yapp/version.h b/yapp/version.h index 22049b1..3c595ac 100644 --- a/yapp/version.h +++ b/yapp/version.h @@ -4,7 +4,7 @@ #define __MAJOR_VERSION 0 #define __MINOR_VERSION 2 #define __RELEASE_NUM 1 -#define __BUILD_NUM 4 +#define __BUILD_NUM 5 #define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM #define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM -- cgit v1.2.3