From: Julian Smart Date: Sat, 7 Jun 2003 13:22:34 +0000 (+0000) Subject: Reports suggest that _sometimes_ WS_VSCROLL/WS_HSCROLL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f9007c324c9b4f6288156dcf0b865090ee0c0c38 Reports suggest that _sometimes_ WS_VSCROLL/WS_HSCROLL 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 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index f67e46e9be..f203686790 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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.