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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top