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