mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 02:58:48 +00:00
Fix functionality in WM_SHOWWINDOW. Part II of last nights patch for TWOPARAM_ROUTINE_ROS_SHOWWINDOW.
svn path=/trunk/; revision=22373
This commit is contained in:
parent
f391668cb0
commit
755b2442b4
1 changed files with 9 additions and 3 deletions
|
@ -1268,7 +1268,8 @@ User32DefWindowProc(HWND hWnd,
|
||||||
case WM_SHOWWINDOW:
|
case WM_SHOWWINDOW:
|
||||||
{
|
{
|
||||||
LONG Style;
|
LONG Style;
|
||||||
|
INT Ret = 0;
|
||||||
|
|
||||||
if (!lParam)
|
if (!lParam)
|
||||||
return 0;
|
return 0;
|
||||||
Style = GetWindowLongW(hWnd, GWL_STYLE);
|
Style = GetWindowLongW(hWnd, GWL_STYLE);
|
||||||
|
@ -1280,8 +1281,13 @@ User32DefWindowProc(HWND hWnd,
|
||||||
return 0;
|
return 0;
|
||||||
if (!GetWindow(hWnd, GW_OWNER))
|
if (!GetWindow(hWnd, GW_OWNER))
|
||||||
return 0;
|
return 0;
|
||||||
NtUserCallTwoParam((DWORD) hWnd, (DWORD) wParam, TWOPARAM_ROUTINE_ROS_SHOWWINDOW);
|
Ret = NtUserCallTwoParam((DWORD) hWnd, (DWORD) wParam, TWOPARAM_ROUTINE_ROS_SHOWWINDOW);
|
||||||
ShowWindow(hWnd, wParam ? SW_SHOWNA : SW_HIDE);
|
if(Ret)
|
||||||
|
{
|
||||||
|
if( Ret == -1) return 0;
|
||||||
|
return Ret;
|
||||||
|
}
|
||||||
|
ShowWindow(hWnd, wParam ? SW_SHOWNOACTIVATE : SW_HIDE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue