cClearLVItem

You can use this function to un-select an item of a List View common control. It may be necessary to use this function when a control allows multiple selections but only one is desired.

The class name for this control is "SysListView32".

Syntax:

cClearLVItem (window-handle, item)

Parameters:

(i) window-handle Windows handle to a List View common control.

(i) item The one based number of the item to un-select. I.e., the item's location in a list whose first item is item #1.

Returns:

(i) @TRUE, if item is not selected. @FALSE, if item could not be un-selected.

 

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.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")
; Explorer List View area hwndex = DllHwnd("Exploring ") hwnd = cWndbyclass(hwndex,"SHELLDLL_DefView") hwnd = cWndbyclass(hwnd,"SysListView32") ; Get the labels from the first column of each row in the control. wintext = cGetLvText(hwnd) ; Clear all items so. nItems = ItemCount(wintext, @TAB) For i=1 To nItems ; Unselect the item. cClearLvItem(hwnd, i) Next
See Also:

cGetLVText, cSetLVItem, cDblClickItem, cWndByClass, cWndinfo, DLLhwnd (see WIL help).