用:
pListView->GetListCtrl().SetItemState(ID, LVIS_SELECTED, LVIS_SELECTED);
下面是关于nMark的解释:
nMask
Mask specifying which state bits to change.

解决方案 »

  1.   

    其实这样就可以:
    pListView->GetListCtrl().SetItemState(ID, 1, LVIS_SELECTED);
    更详细的解释在这:
    stateMask 
    Value specifying which bits of the state member will be retrieved or modified. For example, setting this member to LVIS_SELECTED will cause only the item's selection state to be retrieved. 
    This member allows you to modify one or more item states without having to retrieve all of the item states first. For example, setting this member to LVIS_SELECTED and state to zero will cause the item's selection state to be cleared, but none of the other states will be affected. To retrieve or modify all of the states, set this member to (UINT)-1. 
      

  2.   

    sorry搞错了,第二种应该是:
    View->GetListCtrl().SetItemState(ID, (UINT)-1, LVIS_SELECTED);