Jump to content

change listview with drag and drop


d0n
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...