Return ListItem via HitTest

D

Desi

Excel 2003
Win XP

Need to get a reference to the individual ListItem object upon which the
user DragDrops within a target ListView control.

Private Sub ListView1_OLEDragDrop[snip]

Dim LstItm As MSComctlLib.ListItem

Set LstItm = Me.ListView1.HitTest(x, y)

The above works however it always returns a reference to the
first (Index = 1) ListItem object in the target control, regardless of what
the
x and y coordinates are.

Thanks for any help.

Desi
 

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

Top