Listview - annoying item mixup. Help needed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I'm dropping labels onto existing items in a LargeIcon Listview. My problem
is that the listviewitem consuming the event is not the one underneath the
mouse cursor!! If only I could derive the listviewitem from the cursor
postion, I could solve that problem, but I don't seem to find how.
 
Use the GetItemAt method of the ListView. This method takes x and y coords as
parameters, in your application that would be the mouse coords, and returns
the ListViewItem at that location.
 
Back
Top