]> git.saurik.com Git - wxWidgets.git/commitdiff
Can now set msw.window.no-clip-children to 1 to eliminate weird
authorJulian Smart <julian@anthemion.co.uk>
Sun, 6 Feb 2005 20:03:35 +0000 (20:03 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 6 Feb 2005 20:03:35 +0000 (20:03 +0000)
refresh behaviour (delays between a window being erased and repainted,
giving a ghostly gradual-redraw effect). May be a temporary 'fix'
until properly fixed before 2.6.

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

src/msw/window.cpp

index d90a1772e6940e16c74b6a987a127506576a6dbf..4a466af0c5380f08ad9b8753d41d03b3cf9490a0 100644 (file)
@@ -54,6 +54,7 @@
 #endif
 
 #include "wx/module.h"
+#include "wx/sysopt.h"
 
 #if wxUSE_DRAG_AND_DROP
     #include "wx/dnd.h"
@@ -1146,7 +1147,8 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
     // using this flag results in very significant reduction in flicker,
     // especially with controls inside the static boxes (as the interior of the
     // box is not redrawn twice)
-    style |= WS_CLIPCHILDREN;
+    if (!wxSystemOptions::GetOptionInt(wxT("msw.window.no-clip-children")) == 1)
+        style |= WS_CLIPCHILDREN;
 
     // it doesn't seem useful to use WS_CLIPSIBLINGS here as we officially
     // don't support overlapping windows and it only makes sense for them and,