user32: Call the SetWindowStyle driver entry point before updating the window position.
This commit is contained in:
parent
91b0ee56cf
commit
1d78f43000
|
@ -763,6 +763,7 @@ ULONG WIN_SetStyle( HWND hwnd, ULONG set_bits, ULONG clear_bits )
|
||||||
|
|
||||||
if (!ok) return 0;
|
if (!ok) return 0;
|
||||||
|
|
||||||
|
USER_Driver->pSetWindowStyle( hwnd, GWL_STYLE, &style );
|
||||||
if (needs_show)
|
if (needs_show)
|
||||||
{
|
{
|
||||||
RECT window_rect, client_rect;
|
RECT window_rect, client_rect;
|
||||||
|
@ -772,7 +773,6 @@ ULONG WIN_SetStyle( HWND hwnd, ULONG set_bits, ULONG clear_bits )
|
||||||
&window_rect, &client_rect, NULL );
|
&window_rect, &client_rect, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
USER_Driver->pSetWindowStyle( hwnd, GWL_STYLE, &style );
|
|
||||||
return style.styleOld;
|
return style.styleOld;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2481,6 +2481,11 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B
|
||||||
|
|
||||||
if (!ok) return 0;
|
if (!ok) return 0;
|
||||||
|
|
||||||
|
if (offset == GWL_STYLE || offset == GWL_EXSTYLE)
|
||||||
|
{
|
||||||
|
style.styleOld = retval;
|
||||||
|
style.styleNew = newval;
|
||||||
|
USER_Driver->pSetWindowStyle( hwnd, offset, &style );
|
||||||
if (needs_show)
|
if (needs_show)
|
||||||
{
|
{
|
||||||
RECT window_rect, client_rect;
|
RECT window_rect, client_rect;
|
||||||
|
@ -2489,11 +2494,6 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B
|
||||||
SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW,
|
SWP_NOZORDER | SWP_NOACTIVATE | SWP_SHOWWINDOW,
|
||||||
&window_rect, &client_rect, NULL );
|
&window_rect, &client_rect, NULL );
|
||||||
}
|
}
|
||||||
if (offset == GWL_STYLE || offset == GWL_EXSTYLE)
|
|
||||||
{
|
|
||||||
style.styleOld = retval;
|
|
||||||
style.styleNew = newval;
|
|
||||||
USER_Driver->pSetWindowStyle( hwnd, offset, &style );
|
|
||||||
SendMessageW( hwnd, WM_STYLECHANGED, offset, (LPARAM)&style );
|
SendMessageW( hwnd, WM_STYLECHANGED, offset, (LPARAM)&style );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue