CListCtrl::GetHotCursor

HCURSOR GetHotCursor( )

Return Value

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

Remarks

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

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

Example

// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;

// Set the hot cursor to be the system app starting cursor.
HCURSOR hCursor = ::LoadCursor(NULL, IDC_APPSTARTING);
pmyListCtrl->SetHotCursor(hCursor);
ASSERT(pmyListCtrl->GetHotCursor() == hCursor);

CListCtrl OverviewClass MembersHierarchy Chart

See Also   CListCtrl::SetHotCursor, CListCtrl::GetHotItem