Poznámka:
Přístup k této stránce vyžaduje autorizaci. Můžete se zkusit přihlásit nebo změnit adresáře.
Přístup k této stránce vyžaduje autorizaci. Můžete zkusit změnit adresáře.
Sets the height of the tree-view items. You can use this macro or send the TVM_SETITEMHEIGHT message explicitly.
Syntax
int TreeView_SetItemHeight(
HWND hwnd,
SHORT iHeight
);
Parameters
hwnd
Type: HWND
Handle to a tree-view control.
iHeight
Type: SHORT
New height of every item in the tree view, in pixels. Heights less than 1 will be set to 1. 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.
Return value
Type: int
Returns the previous height of the items, in pixels.
Remarks
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.
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 |