]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/choice.cpp
missing commit
[wxWidgets.git] / src / univ / choice.cpp
index e8237fef8f742a6a56f1441b054d2e09564101b5..eb42fccad6d0e0d4911598ed4f5a7644e51602c8 100644 (file)
@@ -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);
     }