Compartilhar via


CTreeCtrl::GetItemHeight

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

SHORT GetItemHeight( ) const;

Return Value

The height of the item, in pixels.

Example

// Double the height of the items.
SHORT sHeight = m_TreeCtrl.GetItemHeight();
m_TreeCtrl.SetItemHeight(2 * sHeight);

Requirements

Header: afxcmn.h

See Also

Reference

CTreeCtrl Class

Hierarchy Chart

CTreeCtrl::SetItemHeight

Other Resources

CTreeCtrl Members