]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/htmllbox.cpp
compilation fix
[wxWidgets.git] / src / generic / htmllbox.cpp
index a9d2f468c3423d21481ea6731e8382593dbe7f17..0c5578c11a6a9f439d66b9baa2da5f1bb858241d 100644 (file)
@@ -144,6 +144,8 @@ public:
 
 private:
     const wxHtmlListBox& m_hlbox;
+
+    DECLARE_NO_COPY_CLASS(wxHtmlListBoxStyle)
 };
 
 
@@ -262,6 +264,14 @@ void wxHtmlListBox::RefreshAll()
     wxVListBox::RefreshAll();
 }
 
+void wxHtmlListBox::SetItemCount(size_t count)
+{
+    // the items are going to change, forget the old ones
+    m_cache->Clear();
+
+    wxVListBox::SetItemCount(count);
+}
+
 // ----------------------------------------------------------------------------
 // wxHtmlListBox implementation of wxVListBox pure virtuals
 // ----------------------------------------------------------------------------