void CTabDlg::addParticipant(CString strAdd) { size_t matchO,matchM; matchO = strAdd.Find("Office:"); matchM = strAdd.Find("Mobile:"); if(matchO!=string::npos) { strAdd.Replace("Office: ",NULL); LVFINDINFO info; info.flags = LVFI_PARTIAL|LVFI_STRING; info.psz = strAdd; if(strAdd!="" && listParticipant.FindItem(&info,-1)==-1 && participantIndex<16) { listParticipant.InsertItem(LVIF_TEXT,participantIndex, strAdd,LVIS_SELECTED, LVIS_SELECTED,0, 0); participantIndex++; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)