能力值:
( LV2,RANK:10 )
|
-
-
2 楼
|
能力值:
( LV3,RANK:20 )
|
-
-
3 楼
m_pListCrtl->SetItem(i, // index为5的被选中 0, LVIF_STATE, NULL, 0, LVIS_SELECTED, LVIS_SELECTED, 0); //m_pListCrtl->SetItemState(i, LVIS_FOCUSED | LVIS_SELECTED,LVIS_FOCUSED | LVIS_SELECTED); //m_pListCrtl->SetSelectionMark(i); m_pListCrtl->SetFocus();//获得焦点 //设置跟随滚动到选择项 int nItem = m_pListCrtl->GetTopIndex(); CRect rc; m_pListCrtl->GetItemRect(nItem, rc, LVIR_BOUNDS); CSize sz(0, (i - nItem)*rc.Height()); m_pListCrtl->Scroll(sz); 早已解决,多谢友情帮助
|
|
|