LibUIDK Documentation
ContentsIndexHome
PreviousUpNext
CTreeListCtrl::SetItemHeight Method
C++
SHORT SetItemHeight(SHORT cyHeight);

设置TreeList控件的Item的高度.

Parameters 
Description 
SHORT cyHeight 
为TreeList控件每个Item指定新的高度. 

返回原来的以像素为单位的Item高度.

  • 此函数实际是为由GetTreeListWnd返回的自绘的Tree设置Item高度.请参考MSDN中的CTreeCtrl::SetItemHeight.
  • 默认情况下, Tree中每个Item的高度是相同的, 如果想为每个Item设置不同的高度, 请使用CTreeList::SetItemHeightEx.