]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
Try to find comctl32.dll version even if we don't have shlwapi.h available,
[wxWidgets.git] / src / msw / listbox.cpp
index 1b5d0e4819c49ac705bdea53ab17a5eba9e08d50..17adfc86ab4ecd8155b6834391f934e0b0a6f4c9 100644 (file)
@@ -687,6 +687,9 @@ wxSize wxListBox::DoGetBestSize() const
 
     wListbox += 3*cx;
 
+    // Add room for the scrollbar
+    wListbox += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X);
+
     // don't make the listbox too tall (limit height to 10 items) but don't
     // make it too small neither
     int hListbox = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy)*