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
MFC
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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.

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

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

See the example for CListCtrl::GetHotCursor.

Community Additions

ADD
Show:
© 2015 Microsoft