Share via


CTreeCtrl::GetItemExpandedImageIndex

Retrieves the index of the image to display when the specified item of the current tree-view control is in the expanded state.

int GetItemExpandedImageIndex(
    HTREEITEM hItem
)const;

Parameters

Parameter

Description

[in] hItem

Handle to a tree-view control item.

Return Value

The index of the image to display when the specified item is in the expanded state.

Remarks

This method sends the TVM_GETITEM message, which is described in the Windows SDK. That message returns the TVITEMEX structure that describes the tree-view control item, and then this method retrieves the iExpandedImage member from that structure.

Requirements

Header: afxcmn.h

This method is supported in Windows Vista and later.

Additional requirements for this method are described in Build Requirements for Windows Vista Common Controls.

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::SetItemExpandedImageIndex

TVM_GETITEM

TVITEMEX