]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
Build fix after wxColourBase introduction.
[wxWidgets.git] / src / generic / vlbox.cpp
index 1c1f33174e1394516ffc1dfa3e33c878e0c42ea2..3bd1a36e9928162a90e64de1d2beba589d49f5c3 100644 (file)
@@ -371,8 +371,8 @@ void wxVListBox::OnPaint(wxPaintEvent& WXUNUSED(event))
     // the update rectangle
     wxRect rectUpdate = GetUpdateClientRect();
 
-    // Fill it with background colour
-    dc.SetBrush(GetBackgroundColour());
+    // fill it with background colour
+    dc.SetBackground(GetBackgroundColour());
     dc.Clear();
 
     // the bounding rectangle of the current line
@@ -538,13 +538,11 @@ void wxVListBox::OnKeyDown(wxKeyEvent& event)
             break;
 
         case WXK_PAGEDOWN:
-        case WXK_NEXT:
             PageDown();
             current = GetFirstVisibleLine();
             break;
 
         case WXK_PAGEUP:
-        case WXK_PRIOR:
             if ( m_current == (int)GetFirstVisibleLine() )
             {
                 PageUp();