cClearTVItem

You can use this function to un-select an item of a Tree View common control. Placing the text of an item and each of its ancestor items starting at the root into a string specifies an item. A tab character must delimit each item’s text.

The class name for this control is "SysTreeView32".

Syntax:

cClearTVItem (window-handle, item-path)

Parameters:

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

(s) item-path Tab-delimited list of item text.

Return:

(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")
; Find the Explorer tree control hwnd = DllHwnd("Exploring") hwnd = cWndbyclass(hwnd, "BaseBar") hwnd = cWndbyclass(hwnd, "ReBarWindow32") hwnd = cWndbyclass(hwnd,"SysTreeView32") ;Remove traces of our previous activities. If cClearTvItem(hwnd, selection) ; Report success. selection = StrReplace(selection,@TAB, @CRLF) Message("Clear Item", "Node tree:%@CRLF% %selection% %@CRLF%- cleard") Else ; Can't find the item selection = StrReplace(selection,@TAB, @CRLF) Message("Clear Item", "Node tree:%@CRLF% %selection% %@CRLF%- not cleard") EndIf

 

See Also:

cSetTVItem, cDblClickItem, cWndByClass, cWndInfo, DLLhwnd,