// Get pointer to associated datas (if any)
SMediaFileInfo* pMfi = (SMediaFileInfo*)Items->Objects[nIndex];
// If no datas exist create a new one
if(pMfi != NULL)
{
*pMfi = mfi;
}
// If index is out of range
if((UINT)nOldIndex >= (UINT)Count) return nInsertedIndex;
// Get item text
sText = Items->Strings[nOldIndex];
FMedia = (TMediaFileInfo*)Items->Objects[nOldIndex];
// Delete string
DeleteString(nOldIndex);
// Insert string at new position
nInsertedIndex = InsertString(nNewIndex, mfi);
// Restore associated data
// ReplaceItemData(nInsertedIndex, mfi);
//---------------------------------------------------------------------------
// ValidCtrCheck is used to assure that the components created do not have
// any pure virtual functions.
//