Re: having trouble programmatically selecting CListCtrl item
- From: David Lowndes <DavidL@xxxxxxxxxxxxxxx>
- Date: Sun, 29 Nov 2009 00:49:15 +0000
//**************************************************
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
.
- Follow-Ups:
- Re: having trouble programmatically selecting CListCtrl item
- From: Tony C .
- Re: having trouble programmatically selecting CListCtrl item
- References:
- having trouble programmatically selecting CListCtrl item
- From: Tony C .
- having trouble programmatically selecting CListCtrl item
- Prev by Date: having trouble programmatically selecting CListCtrl item
- Next by Date: Re: having trouble programmatically selecting CListCtrl item
- Previous by thread: having trouble programmatically selecting CListCtrl item
- Next by thread: Re: having trouble programmatically selecting CListCtrl item
- Index(es):