diff options
Diffstat (limited to 'yapp')
-rw-r--r-- | yapp/YAPP.mdsp | 6 | ||||
-rw-r--r-- | yapp/popups2_8.vcproj | 4 | ||||
-rw-r--r-- | yapp/popwin.cpp | 6 | ||||
-rw-r--r-- | yapp/version.h | 2 |
4 files changed, 12 insertions, 6 deletions
diff --git a/yapp/YAPP.mdsp b/yapp/YAPP.mdsp index 14a0f13..b6c4415 100644 --- a/yapp/YAPP.mdsp +++ b/yapp/YAPP.mdsp @@ -108,7 +108,7 @@ extraResourceOptions= 1=popups2.rc
2=version.rc
[History]
-popwin.cpp,0
-popup_history.cpp,2330
common.h,2437
-version.h,797
+popup_history.cpp,2330
+popwin.cpp,0
+version.h,765
diff --git a/yapp/popups2_8.vcproj b/yapp/popups2_8.vcproj index f4bdc33..d2da507 100644 --- a/yapp/popups2_8.vcproj +++ b/yapp/popups2_8.vcproj @@ -245,6 +245,10 @@ </FileConfiguration>
</File>
<File
+ RelativePath=".\popup_history_dlg.cpp"
+ >
+ </File>
+ <File
RelativePath=".\popups2.cpp"
>
<FileConfiguration
diff --git a/yapp/popwin.cpp b/yapp/popwin.cpp index 3e327b3..4edb028 100644 --- a/yapp/popwin.cpp +++ b/yapp/popwin.cpp @@ -7,6 +7,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;
#define ID_CLOSETIMER 0x0101
#define ID_MOVETIMER 0x0102
@@ -16,11 +17,11 @@ int global_mouse_in = 0; void SetStartValues() {
RECT wa_rect;
- if(options.use_mim_monitor) {
+ if(options.use_mim_monitor && MyMonitorFromRect) {
RECT clr;
HMONITOR hMonitor;
GetWindowRect((HWND)CallService(MS_CLUI_GETHWND, 0, 0), &clr);
- hMonitor = MonitorFromRect(&clr, MONITOR_DEFAULTTONEAREST);
+ hMonitor = MyMonitorFromRect(&clr, MONITOR_DEFAULTTONEAREST);
MONITORINFO mi;
mi.cbSize = sizeof(mi);
@@ -726,6 +727,7 @@ void InitWindowStack() { if (hUserDll) {
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");
}
}
diff --git a/yapp/version.h b/yapp/version.h index 14f9979..f929068 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 2
+#define __BUILD_NUM 3
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM
|