X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98fbab9e7bf70ee8af44a78ea2a1d2cbb406880a..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/os2/listbox.cpp diff --git a/src/os2/listbox.cpp b/src/os2/listbox.cpp index ada1db3c6c..932d5e0b6b 100644 --- a/src/os2/listbox.cpp +++ b/src/os2/listbox.cpp @@ -39,8 +39,6 @@ #include "wx/ownerdrw.h" #endif -IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems) - // ============================================================================ // list box item declaration and implementation // ============================================================================ @@ -265,7 +263,6 @@ int wxListBox::DoInsertItems(const wxArrayStringsAdapter & items, void **clientData, wxClientDataType type) { - long lIndex = 0; LONG lIndexType = 0; bool incrementPos = false; @@ -590,11 +587,11 @@ bool wxListBox::OS2Command( if (uParam == LN_SELECT) { - eEvtType = wxEVT_COMMAND_LISTBOX_SELECTED; + eEvtType = wxEVT_LISTBOX; } else if (uParam == LN_ENTER) { - eEvtType = wxEVT_COMMAND_LISTBOX_DOUBLECLICKED; + eEvtType = wxEVT_LISTBOX_DCLICK; } else {