]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed unnecessary fix (caused by erroneous user code)
authorJulian Smart <julian@anthemion.co.uk>
Thu, 14 Apr 2005 07:26:55 +0000 (07:26 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 14 Apr 2005 07:26:55 +0000 (07:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbox.cpp

index e23f78abe18a89c67d42a4879086d2a993467baf..1aa091a7b1e34cd6650803413d5991fe4246f5a5 100644 (file)
@@ -143,26 +143,8 @@ WXDWORD wxStaticBox::MSWGetStyle(long style, WXDWORD *exstyle) const
     styleWin &= ~WS_CLIPCHILDREN;
 
     if ( exstyle )
-    {
         *exstyle = 0;
 
-        // If any of the ancestors are scrolling windows, style has to be
-        // WS_EX_TRANSPARENT or the static box won't be painted when the window
-        // is scrolled. We try not to do this normally, because we get a lot of
-        // flicker.
-        for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
-        {
-            if ( win->HasFlag(wxVSCROLL) || win->HasFlag(wxHSCROLL) )
-            {
-                *exstyle = WS_EX_TRANSPARENT;
-                break;
-            }
-
-            if ( win->IsTopLevel() )
-                break;
-        }
-    }
-
     return styleWin | BS_GROUPBOX;
 }