- if (g_isIdle)
- wxapp_install_idle_handler();
-
- if (!choice->m_hasVMT) return;
-
- if (g_blockEventsOnDrag) return;
-
- wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, choice->GetId() );
- int n = choice->GetSelection();
-
- event.SetInt( n );
- event.SetString( choice->GetStringSelection() );
- event.SetEventObject(choice);
-
- if ( choice->HasClientObjectData() )
- event.SetClientObject( choice->GetClientObject(n) );
- else if ( choice->HasClientUntypedData() )
- event.SetClientData( choice->GetClientData(n) );