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

This commit is contained in:
Gerard Patel 2000-07-15 19:42:52 +00:00 committed by Alexandre Julliard
parent f62a6383c9
commit 72b93d47f0
1 changed files with 2 additions and 2 deletions

View File

@ -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);