]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/lboxcmn.cpp
refactor WM_COMMAND messages handling in MDI frames to avoid duplicating code unneces...
[wxWidgets.git] / src / common / lboxcmn.cpp
index 9b114d7c1b56152b7ee95846548cf64106444c56..a9beae01cc920b6d8621a7be449755c9b6a99c12 100644 (file)
@@ -201,7 +201,7 @@ void wxListBoxBase::CalcAndSendEvent()
 void wxListBoxBase::Command(wxCommandEvent& event)
 {
     SetSelection(event.GetInt(), event.GetExtraLong() != 0);
-    (void)ProcessEvent(event);
+    (void)GetEventHandler()->ProcessEvent(event);
 }
 
 // ----------------------------------------------------------------------------