[NTUSER][USER32] Use async way in TileWindows and CascadeWindows (#4167)

Processing asynchronously. CORE-17894
This commit is contained in:
Katayama Hirofumi MZ 2021-12-16 09:52:02 +09:00 committed by GitHub
parent f636b96eee
commit 0b6f3eb8e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -2129,7 +2129,7 @@ BOOL
NTAPI NTAPI
NtUserEndDeferWindowPosEx( NtUserEndDeferWindowPosEx(
HDWP WinPosInfo, HDWP WinPosInfo,
DWORD Unknown1); BOOL bAsync);
BOOL BOOL
NTAPI NTAPI

View file

@ -3164,12 +3164,12 @@ NtUserChildWindowFromPointEx(HWND hwndParent,
*/ */
BOOL APIENTRY BOOL APIENTRY
NtUserEndDeferWindowPosEx(HDWP WinPosInfo, NtUserEndDeferWindowPosEx(HDWP WinPosInfo,
DWORD Unknown1) BOOL bAsync)
{ {
BOOL Ret; BOOL Ret;
TRACE("Enter NtUserEndDeferWindowPosEx\n"); TRACE("Enter NtUserEndDeferWindowPosEx\n");
UserEnterExclusive(); UserEnterExclusive();
Ret = IntEndDeferWindowPosEx(WinPosInfo, (BOOL)Unknown1); Ret = IntEndDeferWindowPosEx(WinPosInfo, bAsync);
TRACE("Leave NtUserEndDeferWindowPosEx, ret=%i\n", Ret); TRACE("Leave NtUserEndDeferWindowPosEx, ret=%i\n", Ret);
UserLeave(); UserLeave();
return Ret; return Ret;

View file

@ -2190,7 +2190,7 @@ CascadeWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
++ret; ++ret;
} }
EndDeferWindowPos(hDWP); NtUserEndDeferWindowPosEx(hDWP, TRUE);
if (hwndPrev) if (hwndPrev)
SetForegroundWindow(hwndPrev); SetForegroundWindow(hwndPrev);
@ -2384,7 +2384,7 @@ TileWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
++ret; ++ret;
} }
EndDeferWindowPos(hDWP); NtUserEndDeferWindowPosEx(hDWP, TRUE);
if (hwndPrev) if (hwndPrev)
SetForegroundWindow(hwndPrev); SetForegroundWindow(hwndPrev);

View file

@ -645,7 +645,7 @@ DeferWindowPos(HDWP hWinPosInfo,
BOOL WINAPI BOOL WINAPI
EndDeferWindowPos(HDWP hWinPosInfo) EndDeferWindowPos(HDWP hWinPosInfo)
{ {
return NtUserEndDeferWindowPosEx(hWinPosInfo, 0); return NtUserEndDeferWindowPosEx(hWinPosInfo, FALSE);
} }