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
int TreeView_SetBorder(
HWND hwnd,
DWORD dwFlags,
SHORT xBorder,
SHORT 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
Type: int
Returns a int value that contains the previous border size, in pixels. The LOWORD contains the previous size of the horizontal border, and the HIWORD contains the previous size of the vertical border.
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 |