Handling drag/drop in treeview
I add a new treeview item and several subitems to the ML treeview with ML_IPC_TREEITEM_ADD. Later, I'd like to rearrange the subitems with drag/drop, but I don't know how to do that.
Dragging works fine, and Winamp displays the horizontal "insertion bar" in the TV. But when I drop, I only get a ML_MSG_TREE_ONDROPTARGET. This contains the param of the dragged item, and a POINT. How can I get the target position from that (the tree item after which it was dropped)?
|