Allow SetWindowLong(... GWL_STYLE) to change visible bit.
This commit is contained in:
parent
f62a6383c9
commit
72b93d47f0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue