From 1d45250a58c485961741da285934c9a45d1e2ac4 Mon Sep 17 00:00:00 2001 From: Hugh McMaster Date: Mon, 7 Aug 2017 12:29:10 +0000 Subject: [PATCH] comctl32/listview: Invalidate the focus rectangle when the control gets or loses focus. Signed-off-by: Hugh McMaster Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/comctl32/listview.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 850656663a4..73eceff509a 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -2221,9 +2221,8 @@ static void LISTVIEW_ShowFocusRect(const LISTVIEW_INFO *infoPtr, BOOL fShow) SelectObject(hdc, hOldFont); } else - { - LISTVIEW_DrawFocusRect(infoPtr, hdc); - } + LISTVIEW_InvalidateItem(infoPtr, infoPtr->nFocusedItem); + done: ReleaseDC(infoPtr->hwndSelf, hdc); }