comctl32/listview: Invalidate the focus rectangle when the control gets or loses focus.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2017-08-07 12:29:10 +00:00 committed by Alexandre Julliard
parent efb8d0b497
commit 1d45250a58

View file

@ -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);
}