]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/vlbox.cpp
compilation fix for PCH-less build
[wxWidgets.git] / src / generic / vlbox.cpp
index df4a9bbfb0c70d4868ab72f39e0a09309a31e232..04ad587675ce0da51ec5255b1a2334f4f8bae00c 100644 (file)
@@ -51,6 +51,8 @@ BEGIN_EVENT_TABLE(wxVListBox, wxVScrolledWindow)
 
     EVT_SET_FOCUS(wxVListBox::OnSetOrKillFocus)
     EVT_KILL_FOCUS(wxVListBox::OnSetOrKillFocus)
+
+    EVT_SIZE(wxVListBox::OnSize)
 END_EVENT_TABLE()
 
 // ============================================================================
@@ -494,6 +496,11 @@ void wxVListBox::OnSetOrKillFocus(wxFocusEvent& WXUNUSED(event))
     RefreshSelected();
 }
 
+void wxVListBox::OnSize(wxSizeEvent& event)
+{
+    UpdateScrollbar();
+    event.Skip();
+}
 
 // ============================================================================
 // wxVListBox keyboard/mouse handling