Sign in to follow this  
Followers 0
d0n

change listview with drag and drop

1 post in this topic

#1 ·  Posted (edited)

I am looking for a way to move items in a guilistview around via drag and drop, i was wondering which function i should be looking at?

I found this, but when i ran it it gave me some errors

Case $LVN_BEGINDRAG ; A drag-and-drop operation involving the left mouse button is being initiated
                  $tInfo = DllStructCreate($tagNMLISTVIEW, $ilParam)
                  _DebugPrint("$LVN_BEGINDRAG" & @LF & "--> hWndFrom:" & @TAB & $hWndFrom & @LF & _
                          "-->IDFrom:" & @TAB & $iIDFrom & @LF & _
                          "-->Code:" & @TAB & $iCode & @LF & _
                          "-->Item:" & @TAB & DllStructGetData($tInfo, "Item") & @LF & _
                          "-->SubItem:" & @TAB & DllStructGetData($tInfo, "SubItem") & @LF & _
                          "-->NewState:" & @TAB & DllStructGetData($tInfo, "NewState") & @LF & _
                          "-->OldState:" & @TAB & DllStructGetData($tInfo, "OldState") & @LF & _
                          "-->Changed:" & @TAB & DllStructGetData($tInfo, "Changed") & @LF & _
                          "-->ActionX:" & @TAB & DllStructGetData($tInfo, "ActionX") & @LF & _
                          "-->ActionY:" & @TAB & DllStructGetData($tInfo, "ActionY") & @LF & _
                          "-->Param:" & @TAB & DllStructGetData($tInfo, "Param"))
                  ; No return
Edited by d0n

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0