Condividi tramite


CListCtrl::SetHotItem

Sets the current hot item of a list view control.

int SetHotItem(
   int iIndex 
);

Parameters

  • iIndex
    Zero-based index of the item to be set as the hot item.

Return Value

The zero-based index of the previously hot item.

Remarks

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

Example

See the example for CListCtrl::GetHotItem.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::GetHotCursor

CListCtrl::GetHotItem

Other Resources

CListCtrl Members