From 2d0e6b13c2dce10235409caa54d0e3d71658cc4d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 7 Jun 2003 13:22:34 +0000 Subject: [PATCH] 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/branches/WX_2_4_BRANCH@20992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index dd095f1003..39cacd941f 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1157,6 +1157,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.