]> git.saurik.com Git - wxWidgets.git/commitdiff
Temporary fix (I hope) to allow an application to paint around controls
authorJulian Smart <julian@anthemion.co.uk>
Wed, 27 Apr 2005 19:21:24 +0000 (19:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 27 Apr 2005 19:21:24 +0000 (19:21 +0000)
within static boxes by suspending the flicker reduction fix

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

src/msw/statbox.cpp

index ae9cb75ed0f6b038ec4a64afbf13c438fa457a09..88e485e64b57e19ecc41ab01e546dedf816c041c 100644 (file)
@@ -40,6 +40,7 @@
 #include "wx/sysopt.h"
 #include "wx/image.h"
 #include "wx/dcmemory.h"
+#include "wx/sysopt.h"
 
 #include "wx/msw/private.h"
 #include "wx/msw/missing.h"
@@ -123,7 +124,8 @@ bool wxStaticBox::Create(wxWindow *parent,
         return false;
 
 #ifndef __WXWINCE__
-    Connect(wxEVT_PAINT, wxPaintEventHandler(wxStaticBox::OnPaint));
+    if (!wxSystemOptions::IsFalse(wxT("msw.staticbox.optimized-paint")))
+        Connect(wxEVT_PAINT, wxPaintEventHandler(wxStaticBox::OnPaint));
 #endif // !__WXWINCE__
 
     return true;
@@ -143,7 +145,12 @@ WXDWORD wxStaticBox::MSWGetStyle(long style, WXDWORD *exstyle) const
     styleWin &= ~WS_CLIPCHILDREN;
 
     if ( exstyle )
-        *exstyle = 0;
+    {
+        if (wxSystemOptions::IsFalse(wxT("msw.staticbox.optimized-paint")))
+            *exstyle = WS_EX_TRANSPARENT;
+        else
+            *exstyle = 0;
+    }
 
     return styleWin | BS_GROUPBOX;
 }