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


CTreeCtrl::SetItemStateEx

Sets the extended state of the specified item in the current tree-view control.

BOOL SetItemStateEx(
          HTREEITEM hItem, 
          UINT uStateEx
);

Параметры

Parameter

Description

[in] hItem

Handle to a tree-view control item.

[in] uStateEx

The extended state of the item. For more information, see the uStateEx member of the TVITEMEX structure.

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

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 uStateEx parameter to the uStateEx 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

CTreeCtrl::GetItemStateEx

TVM_SETITEM

TVITEMEX