X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d0cf3f9be68172d67ed1e82975ea5f080989a33..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/generic/vlbox.cpp diff --git a/src/generic/vlbox.cpp b/src/generic/vlbox.cpp index a4be49817c..4ae7b7652c 100644 --- a/src/generic/vlbox.cpp +++ b/src/generic/vlbox.cpp @@ -275,7 +275,7 @@ void wxVListBox::SendSelectedEvent() wxASSERT_MSG( m_current != wxNOT_FOUND, wxT("SendSelectedEvent() shouldn't be called") ); - wxCommandEvent event(wxEVT_COMMAND_LISTBOX_SELECTED, GetId()); + wxCommandEvent event(wxEVT_LISTBOX, GetId()); InitEvent(event, m_current); (void)GetEventHandler()->ProcessEvent(event); } @@ -720,7 +720,7 @@ void wxVListBox::OnLeftDClick(wxMouseEvent& eventMouse) // this event as a left-click instead if ( item == m_current ) { - wxCommandEvent event(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, GetId()); + wxCommandEvent event(wxEVT_LISTBOX_DCLICK, GetId()); InitEvent(event, item); (void)GetEventHandler()->ProcessEvent(event); }