Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

CListCtrl::GetHotCursor

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

HCURSOR GetHotCursor( );

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

This member function implements the behavior of the Win32 macro, ListView_GetHotCursor, as described in the Windows 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.

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

Header: afxcmn.h

Show:
© 2015 Microsoft