Upravit

Sdílet prostřednictvím


TVM_SETITEM message

The TVM_SETITEM message sets some or all of a tree-view item's attributes. You can send this message explicitly or by using the TreeView_SetItem macro.

Parameters

wParam

Must be zero.

lParam

Pointer to a TVITEM structure that contains the new item attributes. With version 4.71 and later, you can use a TVITEMEX structure instead.

Return value

Returns TRUE if successful, or FALSE otherwise.

Remarks

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

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h
Unicode and ANSI names
TVM_SETITEMW (Unicode) and TVM_SETITEMA (ANSI)