From 6a015328995035ee790c3dc938c6ac9bcf81fcae Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 13 Nov 2024 20:41:36 +0100 Subject: [PATCH] comctl32/listview: Send LVN_HOTTRACK in response to mouse moves. It's worth noting that comctl32 v6 have hottracking notifications enabled by default, there is no need to set any extended styles. Signed-off-by: Nikolay Sivov --- dlls/comctl32/listview.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 5b7bdfac628..9191aef1c3f 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4150,6 +4150,7 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN /* see if we are supposed to be tracking mouse hovering */ if (LISTVIEW_IsHotTracking(infoPtr)) { TRACKMOUSEEVENT trackinfo; + NMLISTVIEW nmlv = { 0 }; DWORD flags; trackinfo.cbSize = sizeof(TRACKMOUSEEVENT); @@ -4170,6 +4171,15 @@ static LRESULT LISTVIEW_MouseMove(LISTVIEW_INFO *infoPtr, WORD fwKeys, INT x, IN /* call TRACKMOUSEEVENT so we receive WM_MOUSEHOVER messages */ _TrackMouseEvent(&trackinfo); } + + ht.pt = pt; + LISTVIEW_HitTest(infoPtr, &ht, TRUE, TRUE); + + nmlv.iItem = ht.iItem; + nmlv.iSubItem = ht.iSubItem; + nmlv.ptAction = pt; + + notify_listview(infoPtr, LVN_HOTTRACK, &nmlv); } return 0;