Click to See Complete Forum and Search --> : How can I select one row of a list control ?


Braulio
May 19th, 1999, 05:14 AM
Hi,

I want to select ( and set the focus ) to one row of the list control, I have tried this:

m_lcInfotype.SetItemState(iIndex,LVIS_FOCUSED|LVIS_SELECTED,LVIF_STATE);

But don't work, anybody can give me an idea ?, Thanks, Bye !
Braulio

olivier
May 19th, 1999, 05:21 AM
MyListCtrl.SetItemState (0, LVIS_SELECTED | LVIS_FOCUSED,LVIS_SELECTED | LVIS_FOCUSED);

Jack Shainsky
May 19th, 1999, 05:23 AM
Look at CListViewEx in the ROWLIST sample in the VC++ help.


Jack Shainsky
Jerusalem, Israel.
jack.shainsky@usa.net