Index is always 0...it never incrememnts, shouldnt it?
MSDN says that particular SendMessage returns the index of the added string.

PHP Code:
//------------------
//Add an item to the list
//------------------
void ListBox::AddItem(charItem)
{
    
int Index=0;
    
//add string
    
Index SendMessage(m_hwndLB_ADDSTRING0, (LPARAM)Item);
    
SendMessage(m_hwndLB_SETITEMDATAIndex, (LPARAM)Item);