ListView - GetItemAt for groups?

iMP

Newcomer
Joined
Jun 24, 2009
Messages
4
Location
Norway
I'm trying to make it possible to drag & drop reorder items in a listview by groups, and I have one problem;

Is there any way to determine which group is under the cursor in a ListView control? Just like GetItemAt for items, only for groups? I've searched the net but couldn't find anything :confused:

When I drop items I get the group from the item it dropped upon, but when there's a empty group, I need to be able to get the header from that group or anything to determine which group it shall be placed in 0.o..

Any help is appreciated! :)

Cheers
 
I figured out a quick and easy solution, just found the closest item below the drop location, if any, and got the group from it. It works nice now:]

Though if anyone got a better method, please post ^^
 
Back
Top