Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 2.01 KB

tvm-setitem.md

File metadata and controls

71 lines (42 loc) · 2.01 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVM_SETITEM message (Commctrl.h)
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.
28d288bf-a557-4fce-870c-ffa368ece5a9
TVM_SETITEM message Windows Controls
apiref
TVM_SETITEM
TVM_SETITEMA
TVM_SETITEMW
Commctrl.h
HeaderDef
reference
05/31/2018

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)