Brendan Shanks : user32: Support SetWindowPos() SWP_ASYNCWINDOWPOS flag.

Alexandre Julliard julliard at winehq.org
Sun Feb 2 12:56:44 CST 2020


Module: wine
Branch: master
Commit: 22e0f03e9290f289c317468533a4d5f86630d56b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=22e0f03e9290f289c317468533a4d5f86630d56b

Author: Brendan Shanks <bshanks at codeweavers.com>
Date:   Tue Jan 28 14:56:12 2020 -0800

user32: Support SetWindowPos() SWP_ASYNCWINDOWPOS flag.

Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/winpos.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index f759bd10f9..b92a20df18 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -2387,7 +2387,10 @@ BOOL WINAPI SetWindowPos( HWND hwnd, HWND hwndInsertAfter,
     if (WIN_IsCurrentThread( hwnd ))
         return USER_SetWindowPos( &winpos, 0, 0 );
 
-    return SendMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos );
+    if (flags & SWP_ASYNCWINDOWPOS)
+        return SendNotifyMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos );
+    else
+        return SendMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos );
 }
 
 




More information about the wine-cvs mailing list