Commit 72b93d47 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Allow SetWindowLong(... GWL_STYLE) to change visible bit.

parent f62a6383
......@@ -2029,8 +2029,8 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval,
goto end;
case GWL_STYLE:
style.styleOld = wndPtr->dwStyle;
newval &= ~(WS_VISIBLE | WS_CHILD); /* Some bits can't be changed this way */
style.styleNew = newval | (style.styleOld & (WS_VISIBLE | WS_CHILD));
newval &= ~(WS_CHILD); /* this bit can't be changed this way */
style.styleNew = newval | (style.styleOld & (WS_CHILD));
if (wndPtr->flags & WIN_ISWIN32)
SendMessageA(hwnd,WM_STYLECHANGING,GWL_STYLE,(LPARAM)&style);
......
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