TreeView_SetBorder macro
[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 hwndTV,
DWORD dwFlags,
SHORT xBorder,
SHORT yBorder
);
Parameters
- hwndTV
-
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
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.
Security Considerations
Using this macro might compromise the security of your program.
Remarks
The item border is set just for spacing purposes. A successful setting triggers a recalculation of the scroll bars.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
See also