From 72b93d47f0205e5058fcf4fe43de1f1df82e1f57 Mon Sep 17 00:00:00 2001 From: Gerard Patel Date: Sat, 15 Jul 2000 19:42:52 +0000 Subject: [PATCH] Allow SetWindowLong(... GWL_STYLE) to change visible bit. --- windows/win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/win.c b/windows/win.c index 0e28e2ac3fe..68a1e44c0df 100644 --- a/windows/win.c +++ b/windows/win.c @@ -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);