]> git.saurik.com Git - wxWidgets.git/commitdiff
last check in forgot to add WS_VSCROLL to the listbox sttyle, added back to reenable...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Apr 2004 12:43:23 +0000 (12:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Apr 2004 12:43:23 +0000 (12:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listbox.cpp

index 8535e241e2d536cb304d226c085a4f27f8d17a82..1ed58c7709a7455cf8cd5968eaddf9808283053d 100644 (file)
@@ -210,6 +210,10 @@ WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const
 {
     WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);
 
 {
     WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);
 
+    // always show the vertical scrollbar if necessary -- otherwise it is
+    // impossible to use the control with the mouse
+    msStyle |= WS_VSCROLL;
+
     // we always want to get the notifications
     msStyle |= LBS_NOTIFY;
 
     // we always want to get the notifications
     msStyle |= LBS_NOTIFY;