WinXListBox_SetCaret


WinXListBox_SetCaret (hListBox, item)

Sets the position of the caret in a list box

Parameter Description
hListBox The handle to the list box
item The item to set the caret to

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The caret is the item with the dotted rectangle around it.

Examples

'give the first item the caret
WinXListBox_SetCaret (hListBox, 0)

Related Links

WinXAddListBox
WinXListBox_GetSelection
WinXListBox_SetSelection