diff options
Diffstat (limited to 'yapp/popwin.cpp')
-rw-r--r-- | yapp/popwin.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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");
}
}
|