From 3c9ab8f62d7374be0589a3de00a91f2bb584ca16 Mon Sep 17 00:00:00 2001 From: Patrik Stridvall Date: Mon, 10 Sep 2001 23:09:46 +0000 Subject: [PATCH] The message handler of WM_STYLECHANGING is supposed to be able to modify the proposed style if it wishes. --- windows/win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/win.c b/windows/win.c index 407b922d4ac..6a792770566 100644 --- a/windows/win.c +++ b/windows/win.c @@ -1817,7 +1817,7 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval, style.styleOld = wndPtr->dwExStyle; style.styleNew = newval; SendMessageA(hwnd,WM_STYLECHANGING,GWL_EXSTYLE,(LPARAM)&style); - wndPtr->dwExStyle = newval; + wndPtr->dwExStyle = style.styleNew; SendMessageA(hwnd,WM_STYLECHANGED,GWL_EXSTYLE,(LPARAM)&style); retval = style.styleOld; goto end;