Module: wine Branch: master Commit: b0fce2a02b5b3b5dda61b6fe1a653b2fe994de0d URL: http://source.winehq.org/git/wine.git/?a=commit;h=b0fce2a02b5b3b5dda61b6fe1a...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Sep 13 13:50:34 2012 +0200
user32: Refresh the frame when the style bits of a layered window are changed.
---
dlls/user32/defwnd.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c index 0ac308c..af566bf 100644 --- a/dlls/user32/defwnd.c +++ b/dlls/user32/defwnd.c @@ -719,6 +719,16 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa SendMessageW( GetParent(hwnd), msg, wParam, lParam ); break;
+ case WM_STYLECHANGED: + if (wParam == GWL_STYLE && (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_LAYERED)) + { + STYLESTRUCT *style = (STYLESTRUCT *)lParam; + if ((style->styleOld ^ style->styleNew) & (WS_CAPTION|WS_THICKFRAME|WS_VSCROLL|WS_HSCROLL)) + SetWindowPos( hwnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE | SWP_NOZORDER | + SWP_NOSIZE | SWP_NOMOVE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE ); + } + break; + case WM_APPCOMMAND: { HWND parent = GetParent(hwnd);