Skip to content

Latest commit

 

History

History
71 lines (41 loc) · 1.95 KB

tvm-setindent.md

File metadata and controls

71 lines (41 loc) · 1.95 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TVM_SETINDENT message (Commctrl.h)
Sets the width of indentation for a tree-view control and redraws the control to reflect the new width. You can send this message explicitly or by using the TreeView\_SetIndent macro.
377da8fe-c8e6-479b-a283-f1811cbc3e58
TVM_SETINDENT message Windows Controls
apiref
TVM_SETINDENT
Commctrl.h
HeaderDef
reference
05/31/2018

TVM_SETINDENT message

Sets the width of indentation for a tree-view control and redraws the control to reflect the new width. You can send this message explicitly or by using the TreeView_SetIndent macro.

Parameters

wParam

Width, in pixels, of the indentation. If this parameter is less than the system-defined minimum width, the new width is set to the system-defined minimum.

lParam

Must be zero.

Return value

No return value.

Remarks

The system-defined minimum indent value is typically five pixels, but it is not fixed. To retrieve the exact value of the minimum indent on a particular system, send a TVM_SETINDENT message with wParam set to zero. Then send a TVM_GETINDENT message to retrieve the minimum indent value.

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

TreeView_SetIndent