让CListCtrl的垂直滚动条自动跳到指定的ITEM子项位置
转载自 让CListCtrl的垂直滚动条自动跳到指定的ITEM子项位置int nSel = 50; //第五十条itemint nItem = m_list.GetTopIndex(); CRect rc; m_list.GetItemRect(nItem, rc, LVIR_BOUNDS); CSize sz(0, (nSel - nItem)*rc.Height()); ...
转载
2018-05-02 18:45:52 ·
1556 阅读 ·
0 评论