Commit 73a23606 authored by Michael Kaufmann's avatar Michael Kaufmann Committed by Alexandre Julliard

static control: Immediately repaint the control.

parent 6ca3e636
......@@ -419,7 +419,7 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
case WM_SYSCOLORCHANGE:
STATIC_InitColours();
InvalidateRect(hwnd, NULL, TRUE);
STATIC_TryPaintFcn( hwnd, full_style );
break;
case WM_NCCREATE:
......@@ -544,13 +544,13 @@ static LRESULT StaticWndProc_common( HWND hwnd, UINT uMsg, WPARAM wParam,
FIXME("STM_SETIMAGE: Unhandled type %x\n", wParam);
break;
}
InvalidateRect( hwnd, NULL, TRUE );
STATIC_TryPaintFcn( hwnd, full_style );
break;
case STM_SETICON16:
case STM_SETICON:
lResult = (LRESULT)STATIC_SetIcon( hwnd, (HICON)wParam, full_style );
InvalidateRect( hwnd, NULL, TRUE );
STATIC_TryPaintFcn( hwnd, full_style );
break;
default:
......
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