Selecting item in a List Control
Hi
I am trying to select an item in a list control using the SetItemState method. The method selects the item however the item is not highlighted on screen.
What I have at the moment is:
..
m_filelist.SetItemState(nSelected,LVIS_SELECTED|LVIS_FOCUSED,LVIS_SELECTED|LVIS_FOCUSED);
..
This correctly selects the item I want however it is not highlighted. How can I also highlight a particular item?
Cheers
Robbie
Re: Selecting item in a List Control
Did you mean:
Code:
m_filelist.SetItemState(nSelected, LVIS_SELECTED|LVIS_FOCUSED, LVIF_SELECTED);
Re: Selecting another item in a List Control
Re: Selecting another item in a List Control
SetItemState(nItem, LVIS_SELECTED, LVIS_SELECTED);
works for me.