mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +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
|
@ -1268,6 +1268,7 @@ User32DefWindowProc(HWND hWnd,
|
||||||
case WM_SHOWWINDOW:
|
case WM_SHOWWINDOW:
|
||||||
{
|
{
|
||||||
LONG Style;
|
LONG Style;
|
||||||
|
INT Ret = 0;
|
||||||
|
|
||||||
if (!lParam)
|
if (!lParam)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -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