Commit 3f89a713 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

comctl32: header: Invalidate the control after a WM_SETREDRAW with wParam == TRUE.

parent 056d004b
......@@ -1945,6 +1945,18 @@ HEADER_SetFont (HWND hwnd, WPARAM wParam, LPARAM lParam)
return 0;
}
static LRESULT HEADER_SetRedraw(HWND hwnd, WPARAM wParam, LPARAM lParam)
{
/* ignoring the InvalidateRect calls is handled by user32. But some apps expect
* that we invalidate the header and this has to be done manually */
LRESULT ret;
ret = DefWindowProcW(hwnd, WM_SETREDRAW, wParam, lParam);
if (wParam)
InvalidateRect(hwnd, NULL, TRUE);
return ret;
}
/* Update the theme handle after a theme change */
static LRESULT HEADER_ThemeChanged(HWND hwnd)
{
......@@ -2081,6 +2093,9 @@ HEADER_WindowProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
case WM_SETFONT:
return HEADER_SetFont (hwnd, wParam, lParam);
case WM_SETREDRAW:
return HEADER_SetRedraw(hwnd, wParam, lParam);
default:
if ((msg >= WM_USER) && (msg < WM_APP))
ERR("unknown msg %04x wp=%04x lp=%08lx\n",
......
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