Contents Index Topic Contents | ||
Previous Topic: TreeView_SetItem Next Topic: TreeView_SetScrollTime |
TreeView_SetItemHeight
int TreeView_SetItemHeight( HWND hwndTV, SHORT cyItem );Sets the height of the tree view items. You can use this macro or send the TVM_SETITEMHEIGHT message explicitly.
- Returns the previous height of the items, in pixels.
- hwndTV
- Handle to a tree view control.
- cyItem
- New height of every item in the tree view, in pixels. If this value is less than the height of the images, then it will be set to the height of the images. If this argument is not even, it will be rounded down to the nearest even value. If this argument is -1, the control will revert to using its default item height.
The tree view control uses this value for the height of all items. To modify the height of individual items, see the description of the iIntegral member of the TVITEMEX structure.
Version 4.71
See also TreeView_GetItemHeight
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.