]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/htmllbox.cpp
always skip OnSize
[wxWidgets.git] / src / generic / htmllbox.cpp
index 0e89d1e8f1c00c0f731c8c9bd1e008761787a2c2..bf063faeae6621c555d3acbdb73237856c891256 100644 (file)
@@ -599,6 +599,9 @@ void wxHtmlListBox::OnLeftDown(wxMouseEvent& event)
 // wxSimpleHtmlListBox
 // ----------------------------------------------------------------------------
 
+IMPLEMENT_ABSTRACT_CLASS(wxSimpleHtmlListBox, wxHtmlListBox)
+
+
 bool wxSimpleHtmlListBox::Create(wxWindow *parent, wxWindowID id,
                                  const wxPoint& pos,
                                  const wxSize& size,
@@ -686,7 +689,7 @@ int wxSimpleHtmlListBox::DoInsertItems(const wxArrayStringsAdapter& items,
 
     UpdateCount();
 
-    return pos;
+    return pos - 1;
 }
 
 void wxSimpleHtmlListBox::SetString(unsigned int n, const wxString& s)