]> git.saurik.com Git - wxWidgets.git/commitdiff
slightly clarified msw.window.no-clip-children test
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Mar 2005 00:02:55 +0000 (00:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 9 Mar 2005 00:02:55 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index c0ac14e681791351def7eb1a63b516a58212466e..10c5aaef5da8ad79685325daec4b01111fa073ea 100644 (file)
@@ -1146,9 +1146,11 @@ 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).
-    // wxCLIP_CHILDREN support is for compatibility with old applications only.
-    if ((!wxSystemOptions::GetOptionInt(wxT("msw.window.no-clip-children")) == 1) || (flags & wxCLIP_CHILDREN))
+    // box is not redrawn twice).but sometimes results in redraw problems, so
+    // optionally allow the old code to continue to use it provided a special
+    // system option is turned on
+    if ( !wxSystemOptions::GetOptionInt(wxT("msw.window.no-clip-children"))
+            || (flags & wxCLIP_CHILDREN) )
         style |= WS_CLIPCHILDREN;
 
     // it doesn't seem useful to use WS_CLIPSIBLINGS here as we officially
@@ -2200,7 +2202,6 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
     {
         bool        allow;
         WXLRESULT   result;
-        WXHICON     hIcon;
         WXHBRUSH    hBrush;
     } rc;