wxListBox::SetSelection

void SetSelection(int n, Boolselect = TRUE)

Selects or deselects the given item.