Commit e5ef460d authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Preserve the surface contents when changing the WS_EX_LAYERED bit.

parent 2e56a912
...@@ -438,11 +438,13 @@ static void send_parent_notify( HWND hwnd, UINT msg ) ...@@ -438,11 +438,13 @@ static void send_parent_notify( HWND hwnd, UINT msg )
*/ */
static void update_window_state( HWND hwnd ) static void update_window_state( HWND hwnd )
{ {
RECT window_rect, client_rect; RECT window_rect, client_rect, valid_rects[2];
WIN_GetRectangles( hwnd, COORDS_PARENT, &window_rect, &client_rect ); WIN_GetRectangles( hwnd, COORDS_PARENT, &window_rect, &client_rect );
valid_rects[0] = valid_rects[1] = client_rect;
set_window_pos( hwnd, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE | set_window_pos( hwnd, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE |
SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW, &window_rect, &client_rect, NULL ); SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW,
&window_rect, &client_rect, valid_rects );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment