wxCommandEvent::GetSelection

int GetSelection(void)

Returns item index for a listbox or choice selection event (not valid for a deselection).