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:
@@ -40,6 +40,7 @@
|
|||||||
#include "wx/sysopt.h"
|
#include "wx/sysopt.h"
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include "wx/dcmemory.h"
|
#include "wx/dcmemory.h"
|
||||||
|
#include "wx/sysopt.h"
|
||||||
|
|
||||||
#include "wx/msw/private.h"
|
#include "wx/msw/private.h"
|
||||||
#include "wx/msw/missing.h"
|
#include "wx/msw/missing.h"
|
||||||
@@ -123,6 +124,7 @@ bool wxStaticBox::Create(wxWindow *parent,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
#ifndef __WXWINCE__
|
#ifndef __WXWINCE__
|
||||||
|
if (!wxSystemOptions::IsFalse(wxT("msw.staticbox.optimized-paint")))
|
||||||
Connect(wxEVT_PAINT, wxPaintEventHandler(wxStaticBox::OnPaint));
|
Connect(wxEVT_PAINT, wxPaintEventHandler(wxStaticBox::OnPaint));
|
||||||
#endif // !__WXWINCE__
|
#endif // !__WXWINCE__
|
||||||
|
|
||||||
@@ -143,7 +145,12 @@ WXDWORD wxStaticBox::MSWGetStyle(long style, WXDWORD *exstyle) const
|
|||||||
styleWin &= ~WS_CLIPCHILDREN;
|
styleWin &= ~WS_CLIPCHILDREN;
|
||||||
|
|
||||||
if ( exstyle )
|
if ( exstyle )
|
||||||
|
{
|
||||||
|
if (wxSystemOptions::IsFalse(wxT("msw.staticbox.optimized-paint")))
|
||||||
|
*exstyle = WS_EX_TRANSPARENT;
|
||||||
|
else
|
||||||
*exstyle = 0;
|
*exstyle = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return styleWin | BS_GROUPBOX;
|
return styleWin | BS_GROUPBOX;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user