Condividi tramite


CTreeCtrl::SetItemHeight

This member function implements the behavior of the Win32 message TVM_SETITEMHEIGHT, as described in the Windows SDK.

SHORT SetItemHeight(
   SHORT cyHeight 
);

Parameters

  • cyHeight
    Specifies the new height of every item in the tree view, in pixels. If this argument 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.

Return Value

The previous height of the items, in pixels.

Example

See the example for CTreeCtrl::GetItemHeight.

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::GetItemHeight

Other Resources

CTreeCtrl Members