TreeView_SetItem macro (commctrl.h)
The TreeView_SetItem macro sets some or all of a tree-view item's attributes. You can use this macro or send the TVM_SETITEM message explicitly.
C++
BOOL TreeView_SetItem(
HWND hwnd,
LPTVITEM pitem
);
hwnd
Type: HWND
Handle to the tree-view control.
pitem
Type: LPTVITEM
Pointer to a TVITEM structure that contains the new item attributes. With version 4.71 and later, you can instead use a TVITEMEX structure.
Type: BOOL
Returns a nonzero value if successful, or zero otherwise.
The hItem member of the TVITEM or TVITEMEX structure identifies the item, and the mask member specifies which attributes to set.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |