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


CTreeCtrl::SetItemExpandedImageIndex

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

BOOL SetItemExpandedImageIndex(
          HTREEITEM hItem, 
          int iExpandedImage
);

Параметры

Parameter

Description

[in] hItem

Handle to a tree-view control item.

[in] iExpandedImage

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

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

true if this method is successful; otherwise, false.

Заметки

This method sends the TVM_SETITEM message, which is described in the Windows SDK. This method assigns the iExpandedImage parameter to the iExpandedImage member of a TVITEMEX structure, and then uses that structure in the message.

Требования

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

TVM_SETITEM

TVITEMEX

CTreeCtrl::GetItemExpandedImageIndex