让CListCtrl的垂直滚动条自动跳到指定的ITEM子项位置

int  nSel = 50; //第五十条item int  nItem = m_list.GetTopIndex();      CRect rc;      m_list.GetItemRect(nItem, rc, LVIR_BOUNDS);      CSize sz(0, (nSel - nItem)*rc.Height());      m_list.Scroll(sz);     
相关文章
相关标签/搜索