Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
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.
Returns TRUE if successful, or FALSE 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] |
Header |
|
Unicode and ANSI names |
TVM_SETITEMW (Unicode) and TVM_SETITEMA (ANSI) |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today