]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/htmllbox.cpp
added missing selstore.cpp
[wxWidgets.git] / src / generic / htmllbox.cpp
index d3b96e0353240955af4b9d64d3e071d68ecfa86f..8f0ac4ab7eba9b5c14743ceee3fba3bc595e79fa 100644 (file)
@@ -143,11 +143,10 @@ bool wxHtmlListBox::Create(wxWindow *parent,
                            wxWindowID id,
                            const wxPoint& pos,
                            const wxSize& size,
-                           size_t countItems,
                            long style,
                            const wxString& name)
 {
-    return wxVListBox::Create(parent, id, pos, size, countItems, style, name);
+    return wxVListBox::Create(parent, id, pos, size, style, name);
 }
 
 wxHtmlListBox::~wxHtmlListBox()
@@ -224,21 +223,21 @@ void wxHtmlListBox::OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const
     wxHtmlCell *cell = m_cache->Get(n);
     wxCHECK_RET( cell, _T("this cell should be cached!") );
 
-    wxHtmlRenderingState htmlRendState;
+    wxHtmlRenderingInfo htmlRendInfo;
 
     // draw the selected cell in selected state
     if ( IsSelected(n) )
     {
         wxHtmlSelection htmlSel;
         htmlSel.Set(wxPoint(0, 0), cell, wxPoint(INT_MAX, INT_MAX), cell);
-        htmlRendState.SetSelection(&htmlSel);
-        htmlRendState.SetSelectionState(wxHTML_SEL_IN);
+        htmlRendInfo.SetSelection(&htmlSel);
+        //htmlRendInfo.SetSelectionState(wxHTML_SEL_IN);
     }
 
     // note that we can't stop drawing exactly at the window boundary as then
     // even the visible cells part could be not drawn, so always draw the
     // entire cell
-    cell->Draw(dc, rect.x, rect.y, 0, INT_MAX, htmlRendState);
+    cell->Draw(dc, rect.x, rect.y, 0, INT_MAX, htmlRendInfo);
 }
 
 wxCoord wxHtmlListBox::OnMeasureItem(size_t n) const