[PATCH 5/5] comctl32/listview: Invalidate the focus rectangle when the control gets or loses focus
Hugh McMaster
hugh.mcmaster at outlook.com
Mon Aug 7 07:29:10 CDT 2017
Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
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 850656663a..73eceff509 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);
}
--
2.13.2
More information about the wine-patches
mailing list