Use the extended window style for the previous style in the style

changing/changed messages if WIN_SetWindowLong is called with
GWL_EXSTYLE.
This commit is contained in:
Rein Klazes 2003-10-21 23:42:02 +00:00 committed by Alexandre Julliard
parent e14ae47c1d
commit d7484a8a57
1 changed files with 2 additions and 1 deletions

View File

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