Function Reference


_GUICtrlListView_GetHotCursor

Retrieves the HCURSOR value used when the pointer is over an item while hot tracking is enabled

#include <GuiListView.au3>
_GUICtrlListView_GetHotCursor ( $hWnd )

Parameters

$hWnd Control ID/Handle to the control

Return Value

Returns a HCURSOR value that is the handle to the cursor that the list-view control uses when hot tracking is enabled.

Remarks

A list-view control uses hot tracking and hover selection when the $LVS_EX_TRACKSELECT style is set.

Example

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $idListview

        GUICreate("ListView Get Hot Cursor", 400, 300)
        $idListview = GUICtrlCreateListView("", 2, 2, 394, 268)
        GUISetState(@SW_SHOW)

        ; Add columns
        _GUICtrlListView_AddColumn($idListview, "Column 1", 100)
        _GUICtrlListView_AddColumn($idListview, "Column 2", 100)
        _GUICtrlListView_AddColumn($idListview, "Column 3", 100)

        ; Show hot cursor handle
        MsgBox($MB_SYSTEMMODAL, "Information", "Hot Cursor Handle: 0x" & Hex(_GUICtrlListView_GetHotCursor($idListview)) & @CRLF & _
                        "IsPtr = " & IsPtr(_GUICtrlListView_GetHotCursor($idListview)) & " IsHWnd = " & IsHWnd(_GUICtrlListView_GetHotCursor($idListview)))

        ; Loop until the user exits.
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>Example