CListBox::SetTopIndex

int SetTopIndex( int nIndex );

返回值:如果成功,则为0;若出错,则为LB_ERR。

参数:
nIndex指定列表框项的基于零的索引。

说明:
保证某个列表框项可见。
系统滚动列表框,直到由nIndex 指定的各项出现在列表框顶部或到达最大滚动范围。

请参阅:CListBox::GetTopIndex, LB_SETTOPINDEX