X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b36e08d0867cf3f6a5a286ce145c0fb80746c290..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/univ/choice.cpp diff --git a/src/univ/choice.cpp b/src/univ/choice.cpp index e8237fef8f..eb42fccad6 100644 --- a/src/univ/choice.cpp +++ b/src/univ/choice.cpp @@ -31,8 +31,6 @@ #include "wx/arrstr.h" #endif -IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl) - BEGIN_EVENT_TABLE(wxChoice, wxComboBox) EVT_COMBOBOX(wxID_ANY, wxChoice::OnComboBox) END_EVENT_TABLE() @@ -83,7 +81,7 @@ void wxChoice::OnComboBox(wxCommandEvent& event) { if ( event.GetId() == GetId() ) { - event.SetEventType(wxEVT_COMMAND_CHOICE_SELECTED); + event.SetEventType(wxEVT_CHOICE); event.Skip(); GetEventHandler()->ProcessEvent(event); }