mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
[WIN32SS] SwitchToThisWindow 2nd argument is fAltTab (#988)
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-switchtothiswindow CORE-15165
This commit is contained in:
parent
4bd0166e63
commit
1f3353ac3b
2 changed files with 4 additions and 3 deletions
|
@ -508,13 +508,14 @@ NtUserCallTwoParam(
|
||||||
case TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW:
|
case TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW:
|
||||||
{
|
{
|
||||||
HWND hwnd = (HWND)Param1;
|
HWND hwnd = (HWND)Param1;
|
||||||
|
BOOL fAltTab = (BOOL)Param2;
|
||||||
Ret = 0;
|
Ret = 0;
|
||||||
Window = UserGetWindowObject(hwnd);
|
Window = UserGetWindowObject(hwnd);
|
||||||
if (!Window)
|
if (!Window)
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ((BOOL)Param2)
|
if (fAltTab)
|
||||||
{
|
{
|
||||||
if (Window->style & WS_MINIMIZE)
|
if (Window->style & WS_MINIMIZE)
|
||||||
{
|
{
|
||||||
|
|
|
@ -79,9 +79,9 @@ BringWindowToTop(HWND hWnd)
|
||||||
|
|
||||||
|
|
||||||
VOID WINAPI
|
VOID WINAPI
|
||||||
SwitchToThisWindow(HWND hwnd, BOOL bUnknown)
|
SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
|
||||||
{
|
{
|
||||||
NtUserxSwitchToThisWindow(hwnd, bUnknown);
|
NtUserxSwitchToThisWindow(hwnd, fAltTab);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue