The message handler of WM_STYLECHANGING is supposed to be able to

modify the proposed style if it wishes.
This commit is contained in:
Patrik Stridvall 2001-09-10 23:09:46 +00:00 committed by Alexandre Julliard
parent 3566973c78
commit 3c9ab8f62d
1 changed files with 1 additions and 1 deletions

View File

@ -1817,7 +1817,7 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval,
style.styleOld = wndPtr->dwExStyle; style.styleOld = wndPtr->dwExStyle;
style.styleNew = newval; style.styleNew = newval;
SendMessageA(hwnd,WM_STYLECHANGING,GWL_EXSTYLE,(LPARAM)&style); SendMessageA(hwnd,WM_STYLECHANGING,GWL_EXSTYLE,(LPARAM)&style);
wndPtr->dwExStyle = newval; wndPtr->dwExStyle = style.styleNew;
SendMessageA(hwnd,WM_STYLECHANGED,GWL_EXSTYLE,(LPARAM)&style); SendMessageA(hwnd,WM_STYLECHANGED,GWL_EXSTYLE,(LPARAM)&style);
retval = style.styleOld; retval = style.styleOld;
goto end; goto end;