Module: wine Branch: master Commit: 1d45250a58c485961741da285934c9a45d1e2ac4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1d45250a58c485961741da2859...
Author: Hugh McMaster hugh.mcmaster@outlook.com Date: Mon Aug 7 12:29:10 2017 +0000
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
---
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 8506566..73eceff 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); }