Alexandre Julliard : wineandroid: Implement ShowWindow to put icons off-screen.
Alexandre Julliard
julliard at winehq.org
Wed Jun 7 16:24:09 CDT 2017
Module: wine
Branch: master
Commit: b6a00bc0eb595aeec9c9b4f044ce8c259e5cc8bb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b6a00bc0eb595aeec9c9b4f044ce8c259e5cc8bb
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Jun 7 11:27:16 2017 +0200
wineandroid: Implement ShowWindow to put icons off-screen.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wineandroid.drv/window.c | 17 +++++++++++++++++
dlls/wineandroid.drv/wineandroid.drv.spec | 1 +
2 files changed, 18 insertions(+)
diff --git a/dlls/wineandroid.drv/window.c b/dlls/wineandroid.drv/window.c
index f5d2e4f..94f23e0 100644
--- a/dlls/wineandroid.drv/window.c
+++ b/dlls/wineandroid.drv/window.c
@@ -999,6 +999,23 @@ void CDECL ANDROID_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flag
/***********************************************************************
+ * ANDROID_ShowWindow
+ */
+UINT CDECL ANDROID_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
+{
+ if (IsRectEmpty( rect )) return swp;
+ if (!IsIconic( hwnd )) return swp;
+ /* always hide icons off-screen */
+ if (rect->left != -32000 || rect->top != -32000)
+ {
+ OffsetRect( rect, -32000 - rect->left, -32000 - rect->top );
+ swp &= ~(SWP_NOMOVE | SWP_NOCLIENTMOVE);
+ }
+ return swp;
+}
+
+
+/***********************************************************************
* ANDROID_SetWindowStyle
*/
void CDECL ANDROID_SetWindowStyle( HWND hwnd, INT offset, STYLESTRUCT *style )
diff --git a/dlls/wineandroid.drv/wineandroid.drv.spec b/dlls/wineandroid.drv/wineandroid.drv.spec
index 6445bab..ed3138a 100644
--- a/dlls/wineandroid.drv/wineandroid.drv.spec
+++ b/dlls/wineandroid.drv/wineandroid.drv.spec
@@ -12,6 +12,7 @@
@ cdecl SetLayeredWindowAttributes(long long long long) ANDROID_SetLayeredWindowAttributes
@ cdecl SetWindowRgn(long long long) ANDROID_SetWindowRgn
@ cdecl SetWindowStyle(ptr long ptr) ANDROID_SetWindowStyle
+@ cdecl ShowWindow(long long ptr long) ANDROID_ShowWindow
@ cdecl UpdateLayeredWindow(long ptr ptr) ANDROID_UpdateLayeredWindow
@ cdecl WindowMessage(long long long long) ANDROID_WindowMessage
@ cdecl WindowPosChanging(long long long ptr ptr ptr ptr) ANDROID_WindowPosChanging
More information about the wine-cvs
mailing list