Commit 0ad1a6c6 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Setting WS_VISIBLE style does not require any special handling.

parent 970be647
...@@ -1116,14 +1116,9 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CREATESTRUCTA *cs, BOOL unicode ) ...@@ -1116,14 +1116,9 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CREATESTRUCTA *cs, BOOL unicode )
newPos.right, newPos.bottom, swFlag ); newPos.right, newPos.bottom, swFlag );
} }
/* if the window was made visible set create struct flag so that
* we do a proper ShowWindow later on */
if (wndPtr->dwStyle & WS_VISIBLE) cs->style |= WS_VISIBLE;
WIN_ReleaseWndPtr( wndPtr ); WIN_ReleaseWndPtr( wndPtr );
return TRUE; return TRUE;
failed: failed:
X11DRV_DestroyWindow( hwnd ); X11DRV_DestroyWindow( hwnd );
if (wndPtr) WIN_ReleasePtr( wndPtr ); if (wndPtr) WIN_ReleasePtr( wndPtr );
......
...@@ -1230,13 +1230,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom, ...@@ -1230,13 +1230,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
} }
if (cs->style & WS_VISIBLE) if (cs->style & WS_VISIBLE)
{
/* in case WS_VISIBLE got set in the meantime */
if (!(wndPtr = WIN_GetPtr( hwnd ))) return 0;
WIN_SetStyle( hwnd, wndPtr->dwStyle & ~WS_VISIBLE );
WIN_ReleasePtr( wndPtr );
ShowWindow( hwnd, sw ); ShowWindow( hwnd, sw );
}
/* Call WH_SHELL hook */ /* Call WH_SHELL hook */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment