Поделиться через


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;

Параметры

Parameter

Description

[in] hItem

Handle to a tree-view control item.

Возвращаемое значение

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

Заметки

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.

Требования

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.

См. также

Основные понятия

CTreeCtrl Class

CTreeCtrl Members

Hierarchy Chart

CTreeCtrl::SetItemExpandedImageIndex

TVM_GETITEM

TVITEMEX