X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e67eb97376165832f4db541a5e4be0414da9efc..50b58dec17f90370a1ae76ad00aaff8c3c5066a9:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index d90a1772e6..4a466af0c5 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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,