Re: having trouble programmatically selecting CListCtrl item



//**************************************************
m_list2.SetItemState(1, LVIS_SELECTED,LVIS_SELECTED);
m_list2.SetSelectionMark(1);
//**************************************************

Tony,

Does the list have 2 items? i.e. do you actually want the 0'th item?

Does the list control have focus? If the control doesn't have the
LVS_SHOWSELALWAYS style you won't see the selected item(s) unless the
control has focus.

Dave
.