mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTUSER][USER32] Use async way in TileWindows and CascadeWindows (#4167)
Processing asynchronously. CORE-17894
This commit is contained in:
parent
f636b96eee
commit
0b6f3eb8e4
4 changed files with 6 additions and 6 deletions
|
@ -2129,7 +2129,7 @@ BOOL
|
|||
NTAPI
|
||||
NtUserEndDeferWindowPosEx(
|
||||
HDWP WinPosInfo,
|
||||
DWORD Unknown1);
|
||||
BOOL bAsync);
|
||||
|
||||
BOOL
|
||||
NTAPI
|
||||
|
|
|
@ -3164,12 +3164,12 @@ NtUserChildWindowFromPointEx(HWND hwndParent,
|
|||
*/
|
||||
BOOL APIENTRY
|
||||
NtUserEndDeferWindowPosEx(HDWP WinPosInfo,
|
||||
DWORD Unknown1)
|
||||
BOOL bAsync)
|
||||
{
|
||||
BOOL Ret;
|
||||
TRACE("Enter NtUserEndDeferWindowPosEx\n");
|
||||
UserEnterExclusive();
|
||||
Ret = IntEndDeferWindowPosEx(WinPosInfo, (BOOL)Unknown1);
|
||||
Ret = IntEndDeferWindowPosEx(WinPosInfo, bAsync);
|
||||
TRACE("Leave NtUserEndDeferWindowPosEx, ret=%i\n", Ret);
|
||||
UserLeave();
|
||||
return Ret;
|
||||
|
|
|
@ -2190,7 +2190,7 @@ CascadeWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
|
|||
++ret;
|
||||
}
|
||||
|
||||
EndDeferWindowPos(hDWP);
|
||||
NtUserEndDeferWindowPosEx(hDWP, TRUE);
|
||||
|
||||
if (hwndPrev)
|
||||
SetForegroundWindow(hwndPrev);
|
||||
|
@ -2384,7 +2384,7 @@ TileWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
|
|||
++ret;
|
||||
}
|
||||
|
||||
EndDeferWindowPos(hDWP);
|
||||
NtUserEndDeferWindowPosEx(hDWP, TRUE);
|
||||
|
||||
if (hwndPrev)
|
||||
SetForegroundWindow(hwndPrev);
|
||||
|
|
|
@ -645,7 +645,7 @@ DeferWindowPos(HDWP hWinPosInfo,
|
|||
BOOL WINAPI
|
||||
EndDeferWindowPos(HDWP hWinPosInfo)
|
||||
{
|
||||
return NtUserEndDeferWindowPosEx(hWinPosInfo, 0);
|
||||
return NtUserEndDeferWindowPosEx(hWinPosInfo, FALSE);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue