Module: wine Branch: master Commit: 61f9789c3127a2a3ac3bf2d679caac94523bfce0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=61f9789c3127a2a3ac3bf2d679...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Oct 1 13:17:40 2012 +0200
user32: Also call set_window_pos when the WS_EX_LAYERED bit is changed.
---
dlls/user32/win.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 0dbe29e..6845369 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -2472,9 +2472,10 @@ LONG_PTR WIN_SetWindowLong( HWND hwnd, INT offset, UINT size, LONG_PTR newval, B } SERVER_END_REQ;
- if (offset == GWL_STYLE && ((style.styleOld ^ style.styleNew) & WS_VISIBLE)) + if ((offset == GWL_STYLE && ((style.styleOld ^ style.styleNew) & WS_VISIBLE)) || + (offset == GWL_EXSTYLE && ((style.styleOld ^ style.styleNew) & WS_EX_LAYERED))) { - needs_show = !(wndPtr->flags & WIN_HIDDEN) && (style.styleNew & WS_VISIBLE); + needs_show = !(wndPtr->flags & WIN_HIDDEN) && (wndPtr->dwStyle & WS_VISIBLE); invalidate_dce( wndPtr, NULL ); } WIN_ReleasePtr( wndPtr );