TTMSFNCListBox returns random itemindex if BeginUpdate/EndUpdate is used

You will notice also that sometimes, with items inside the Listbox, the first item is not selected as expected by the above code