Upravit

Sdílet prostřednictvím


TVM_SETBORDER message

Intended for internal use; not recommended for use in applications.

Sets the size of the border for the items in a tree-view control. You can send the message explicitly or by using the TreeView_SetBorder macro.

Parameters

wParam

Action flags. This parameter can be one or more of the following values:

Value Meaning
TVSBF_XBORDER
Applies the specified border size to the left side of the items in the tree-view control.
TVSBF_YBORDER
Applies the specified border size to the top of the items in the tree-view control.

lParam

The LOWORD is a SHORT that specifies the size of the left border, in pixels. The HIWORD is a SHORT that specifies the size of the top border, in pixels.

Return value

Returns a LONG 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

Security Warning: Using this message might compromise the security of your program.

The item border is set just for spacing purposes. A successful setting triggers a recalculation of the scroll bars.

This message may not be supported in future versions of Comctl32.dll. Also, this message is not defined in commctrl.h. Add the following definitions to the source files of your application to use the message:

#define TVM_SETBORDER (TV_FIRST + 35)
#define TVSBF_XBORDER 0x00000001
#define TVSBF_YBORDER 0x00000002 

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_SetBorder