Returns the text associated with the item, that is the current drag and drop target of a List View common control.
cGetLvDdtText( window-handle)
(i) window-handle Windows handle to a List View common control.
(s) text Text associated with item that is the drag and drop target.
This function returns the text associated with the item, that is the current drag and drop target of a List View common control. An item usually becomes a drop target when the item has another item moved over the top of it. Only one item can be drop target at a time so this function will return at most one item's text. A blank string ("") is returned when no item is the drop target.
The class name for the List View control is "SysListView32".
32-bit Extender
This function is designed for Windows 32-bit application controls. It cannot be used on Windows 64-bit controls.
64-bit Extender
This function is designed for Windows 64-bit application controls. It cannot be used on Windows on 32-bit controls.
AddExtender("wwctl44i.dll",0,"wwctl64i.dll") ; Loop until we find a drop target. While @TRUE TimeDelay(.5) ; Get the control's handle. hwnd = cFindByClass("ExploreWClass") hwnd = cWndbyclass(hwnd,"SHELLDLL_DefView") hwnd = cWndbyclass(hwnd,"SysListView32") sDdtText = cGetLvDdtText(hwnd) ; Found a drop target. If StrLen(sDdtText) Message( "Drop target", sDdtText) Break EndIf EndWhile Exit
cGetLvColText, cGetLVText, cSetLvItem, cClearLvItem, cDblClickItem, cWndByClass, cWndinfo