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
Printable View
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
MyListCtrl.SetItemState (0, LVIS_SELECTED | LVIS_FOCUSED,LVIS_SELECTED | LVIS_FOCUSED);
Look at CListViewEx in the ROWLIST sample in the VC++ help.
Jack Shainsky
Jerusalem, Israel.
[email protected]