TreeView_SetItem macro

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.

Syntax


BOOL TreeView_SetItem(
   HWND     hwndTV,
   LPTVITEM pitem
);

Parameters

hwndTV

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.

Return value

Returns a nonzero value if successful, or zero otherwise.

Remarks

The hItem member of the TVITEM or TVITEMEX structure identifies the item, and the mask member specifies which attributes to set.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

See also

TreeView_GetItem

 

 

Show: