From d7484a8a570f21ade60efe8e23e629bdfb5c214b Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Tue, 21 Oct 2003 23:42:02 +0000 Subject: [PATCH] Use the extended window style for the previous style in the style changing/changed messages if WIN_SetWindowLong is called with GWL_EXSTYLE. --- windows/win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/win.c b/windows/win.c index ac3861102d5..987abd29939 100644 --- a/windows/win.c +++ b/windows/win.c @@ -2022,7 +2022,8 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval, { case GWL_STYLE: case GWL_EXSTYLE: - style.styleOld = wndPtr->dwStyle; + style.styleOld = + offset == GWL_STYLE ? wndPtr->dwStyle : wndPtr->dwExStyle; style.styleNew = newval; WIN_ReleasePtr( wndPtr ); SendMessageW( hwnd, WM_STYLECHANGING, offset, (LPARAM)&style );