i think you could sendmessage with paramter "LB_INSERTSTRING",
and count index correctly