Temporary fix (I hope) to allow an application to paint around controls

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
This commit is contained in:
Julian Smart
2005-04-27 19:21:24 +00:00
parent 4c1672f728
commit 5bf4788ae3

View 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;
}