c - How can I detect if the mouse is over an item/subitem in a List View control? -


i've searched around , haven't found solution sounds reasonable me or seems relevant specific problem (even here on stack overflow).

the problem simple: have of work needed custom checkboxes on cell of list view; need detect hover on/hover off draw hot images. these images set control's state image table, want change subitem state on hovers , clicks.

i tried using nm_hover, after doing work things working didn't work. upon further research, seems issued if lvs_ex_trackselect on, don't want; want handle hovers, not select on hover!

i looked using nm_hottrack , nm_activate, give me half answer: not know when items stop being hovered on (to cold-ify last hot item).

i found codeproject project wacky things internal tooltips. don't want touch internal data structures @ all.

my list view subclassed. require common controls 6. need run on xp or newer (though vista-specific option acceptable future).

do have options here? thanks.

since have listview subclassed can watch wm_mousemove messages detect mouse moving on control.

depending on requirements may want use trackmouseevent catch when mouse leaves window.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -