]> git.saurik.com Git - wxWidgets.git/commitdiff
Reports suggest that _sometimes_ WS_VSCROLL/WS_HSCROLL
authorJulian Smart <julian@anthemion.co.uk>
Sat, 7 Jun 2003 13:22:34 +0000 (13:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 7 Jun 2003 13:22:34 +0000 (13:22 +0000)
are needed. So map wxVSCROLL/wxHSCROLL to these.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index f67e46e9be294ce6e9e594b267a1eedecb83671b..f20368679056a6bbd50b932ec4a046b0ae4abf64 100644 (file)
@@ -1028,6 +1028,12 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
     if ( flags & wxCLIP_SIBLINGS )
         style |= WS_CLIPSIBLINGS;
 
+    if ( flags & wxVSCROLL )
+        style |= WS_VSCROLL;
+
+    if ( flags & wxHSCROLL )
+        style |= WS_HSCROLL;
+
     wxBorder border = (wxBorder)(flags & wxBORDER_MASK);
     
     // Check if we want to automatically give it a sunken style.