wxListBox::Set

void Set(int n, char *choices[])

Clears the list box and adds the given strings. Deallocate the array from the calling program after this function has been called.