CListCtrl::SetHotCursor

Sets the cursor used when hot tracking is enabled for a list view control.

HCURSOR SetHotCursor(
   HCURSOR hc 
);

Parameters

  • hc
    A handle to a cursor resource, used to represent the hot cursor.

Return Value

The handle to the previous hot cursor resource being used by the list view control.

Remarks

This member function implements the behavior of the Win32 macro, ListView_SetHotCursor, as described in the Windows SDK.

The hot cursor, only visible when hover selection is enabled, appears as the cursor passes over any list view item. Hover selection is enabled by setting the LVS_EX_TRACKSELECT extended style.

Example

See the example for CListCtrl::GetHotCursor.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::GetHotCursor

CListCtrl::GetHotItem

Other Resources

CListCtrl Members