MFC/WIN32: mouse hover highlight in listctrl

Posted by Mordachai on Stack Overflow See other posts from Stack Overflow or by Mordachai
Published on 2010-03-19T22:11:28Z Indexed on 2010/03/19 22:31 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

The ListView control of Windows Explorer gives a highlight to whatever item is under the mouse, without affecting the current selection. This helps enormously with relating what item a given tooltip applies to within a listview - especially in report mode.

However, I am currently unable to find any APIs that would give my MFC application's CListCtrl that same behavior. Extended styles only have LVS_EX_TRACKSELECT, which actually alters the current selection (yuck!).

Does anyone know how to provide a standard CListCtrl (or whatever that actually sits on top of) the mouse-hot-tracking capability?

I found some articles on how to provide per cell and per row tooltip text, but its hard to tell what the tooltips relate to without something highlighting...

© Stack Overflow or respective owner

Related posts about c++

Related posts about mfc