Skip to content

Latest commit

 

History

History
71 lines (41 loc) · 1.99 KB

tvm-setitemheight.md

File metadata and controls

71 lines (41 loc) · 1.99 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVM_SETITEMHEIGHT message (Commctrl.h)
Sets the height of the tree-view items. You can send this message explicitly or by using the TreeView\_SetItemHeight macro.
23f6f2a4-cdd9-441d-af24-ed40513d2721
TVM_SETITEMHEIGHT message Windows Controls
apiref
TVM_SETITEMHEIGHT
Commctrl.h
HeaderDef
reference
05/31/2018

TVM_SETITEMHEIGHT message

Sets the height of the tree-view items. You can send this message explicitly or by using the TreeView_SetItemHeight macro.

Parameters

wParam

New height of every item in the tree view, in pixels. Heights less than 1 will be set to 1. If this argument is not even and the tree-view control does not have the TVS_NONEVENHEIGHT style, this value will be rounded down to the nearest even value. If this argument is -1, the control will revert to using its default item height.

lParam

Must be zero.

Return value

Returns the previous height of the items, in pixels.

Remarks

The tree-view control uses this value for the height of all items. To modify the height of individual items, see the description of the iIntegral member of the TVITEMEX structure.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

TVM_GETITEMHEIGHT