The message handler of WM_STYLECHANGING is supposed to be able to
modify the proposed style if it wishes.
This commit is contained in:
parent
3566973c78
commit
3c9ab8f62d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue