Commit ed792972 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed WM_SETFONT handling (no redraw made in some cases).

parent 66dbcaf3
...@@ -322,20 +322,18 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -322,20 +322,18 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
case WM_SETFONT: case WM_SETFONT:
if ((style == SS_ICON) || (style == SS_BITMAP)) return 0; if ((style == SS_ICON) || (style == SS_BITMAP)) return 0;
SetWindowLongA( hwnd, HFONT_GWL_OFFSET, wParam ); SetWindowLongA( hwnd, HFONT_GWL_OFFSET, wParam );
if (!LOWORD(lParam)) break; /* don't refresh */
switch (style) { switch (style) {
case SS_LEFT: case SS_LEFT:
case SS_CENTER: case SS_CENTER:
case SS_RIGHT: case SS_RIGHT:
case SS_SIMPLE: case SS_SIMPLE:
case SS_LEFTNOWORDWRAP: case SS_LEFTNOWORDWRAP:
{ STATIC_TryPaintFcn( hwnd, full_style );
if (uMsg == WM_SETTEXT)
STATIC_TryPaintFcn( hwnd, full_style );
break; break;
}
default: default:
if (LOWORD(lParam)) InvalidateRect( hwnd, NULL, FALSE );
InvalidateRect( hwnd, NULL, FALSE ); break;
} }
break; break;
......
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