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.
"KennethBohman" wrote:
> 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.
> --
> Thanks for your help,
>
> Kenneth Bohman
|