mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
Setting WS_VISIBLE style does not require any special handling.
This commit is contained in:
parent
970be6477c
commit
0ad1a6c6dd
@ -1116,14 +1116,9 @@ BOOL X11DRV_CreateWindow( HWND hwnd, CREATESTRUCTA *cs, BOOL unicode )
|
||||
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 );
|
||||
return TRUE;
|
||||
|
||||
|
||||
failed:
|
||||
X11DRV_DestroyWindow( hwnd );
|
||||
if (wndPtr) WIN_ReleasePtr( wndPtr );
|
||||
|
@ -1230,13 +1230,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
|
||||
}
|
||||
|
||||
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 );
|
||||
}
|
||||
|
||||
/* Call WH_SHELL hook */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user