CTreeCtrl::GetItemStateEx

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

UINT GetItemStateEx(
     HTREEITEM hItem
) const;

Parameters

Parameter

Description

[in] hItem

Handle to a tree-view control item.

Return Value

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

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 this method retrieves the uStateEx 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::SetItemStateEx

TVM_GETITEM

TVITEMEX

Other Resources

CTreeCtrl Members