TreeView_SetBorder macro (commctrl.h)
[Intended for internal use; not recommended for use in applications. This macro may not be supported in future versions of Windows.]
Sets the size of the border for the items in a tree-view control. You can use this macro or send the TVM_SETBORDER message explicitly.
Syntax
void TreeView_SetBorder(
hwnd,
dwFlags,
xBorder,
yBorder
);
Parameters
hwnd
Type: HWND
Handle to the tree-view control.
dwFlags
Type: DWORD
Action flags. This parameter can be one or more of the following values:
xBorder
Type: SHORT
Size of the left border, in pixels.
yBorder
Type: SHORT
Size of the top border, in pixels.
Return value
None
Remarks
The item border is set just for spacing purposes. A successful setting triggers a recalculation of the scroll bars.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for