X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..b0ad146aba58fae678c885a9bc5e30d79bffb494:/src/motif/checklst.cpp?ds=sidebyside diff --git a/src/motif/checklst.cpp b/src/motif/checklst.cpp index b0e22aaefe..9076a79c77 100644 --- a/src/motif/checklst.cpp +++ b/src/motif/checklst.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 17/09/98 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -28,8 +27,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox) - // ---------------------------------------------------------------------------- // implementation of wxCheckListBox class // ---------------------------------------------------------------------------- @@ -131,7 +128,7 @@ void wxCheckListBox::DoToggleItem( int n, int x ) label[1u] = (!::IsChecked(label)) ? checkChar : uncheckChar; wxListBox::SetString(n, label); - wxCommandEvent event(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId()); + wxCommandEvent event(wxEVT_CHECKLISTBOX, GetId()); if( HasClientObjectData() ) event.SetClientObject( GetClientObject(n) ); else if( HasClientUntypedData() ) @@ -141,7 +138,7 @@ void wxCheckListBox::DoToggleItem( int n, int x ) event.SetEventObject(this); event.SetString(GetString(n)); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); } }