![]() |
#1 |
mlipod moderator
(Senior Member) Join Date: Jun 2005
Location: Germany
Posts: 3,457
|
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)? WinAmp Pro 5.5 with ml_iPod 3.10 + dev.patches (download it) ml_iPod documentation Wiki - ml_iPod FAQ - search ml_iPod forum - iPhone/iTouch - Found a bug? Donations to support the ml_iPod project can be done HERE |
![]() |
![]() |
![]() |
#2 |
Ben Allison
Former Winamp Developer Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
|
When you get called with ML_MSG_TREE_ONDROP, param3 will be the destination tree ID.
|
![]() |
![]() |
![]() |
#3 |
mlipod moderator
(Senior Member) Join Date: Jun 2005
Location: Germany
Posts: 3,457
|
Oh, cool.
That information is missing in the header: code: WinAmp Pro 5.5 with ml_iPod 3.10 + dev.patches (download it) ml_iPod documentation Wiki - ml_iPod FAQ - search ml_iPod forum - iPhone/iTouch - Found a bug? Donations to support the ml_iPod project can be done HERE |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|