CListBox::GetItemHeight
int GetItemHeight( int nIndex ) const;
返回值:
列表框项的高度,用像素表示。如果列表框具有LBS_OWNERDRAWVARIABLE风格,返回值是由nIndex指定的项的高度。如果出错,返回值为LB_ERR。
参数:
nIndex
指定列表框中项的基于零的索引。此参数只用于LBS_OWNERDRAWVARIABLE风格的列表框,否则,应设置为0。
说明:应用调用GetItemHeight成员函数来指定列表框中项的高度。
请参阅:LB_GETITEMHEIGHT,
CListBox::SetItemHeight