Braulio
June 16th, 1999, 03:49 AM
Hi,
I have a list control, and I have an option to refresh the datas on it ( delete all and put new datas), but I would like to keep on select the text row that was selected in the list control before.
I have tried to do this ( in a loop..., while I'm inserting...):
if (iOldSelected!=-1 && IEAdr == OldAdrSelected) {
m_lcImportantIE.SetItemState(iIndex,LVIF_STATE,LVIS_FOCUSED|LVIS_SELECTED);
iOldSelected = -1;
}
But don't works, anybody can help me ?, Thanks, Bye !
Braulio
I have a list control, and I have an option to refresh the datas on it ( delete all and put new datas), but I would like to keep on select the text row that was selected in the list control before.
I have tried to do this ( in a loop..., while I'm inserting...):
if (iOldSelected!=-1 && IEAdr == OldAdrSelected) {
m_lcImportantIE.SetItemState(iIndex,LVIF_STATE,LVIS_FOCUSED|LVIS_SELECTED);
iOldSelected = -1;
}
But don't works, anybody can help me ?, Thanks, Bye !
Braulio