mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
NTAPI
|
||||||
NtUserEndDeferWindowPosEx(
|
NtUserEndDeferWindowPosEx(
|
||||||
HDWP WinPosInfo,
|
HDWP WinPosInfo,
|
||||||
DWORD Unknown1);
|
BOOL bAsync);
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
NTAPI
|
NTAPI
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue