#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"
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;
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;
}
LONG style = ::GetWindowLong(child, GWL_STYLE);
wxString str(wxGetWindowClass(child));
str.UpperCase();
- if ( str == wxT("BUTTON") && (style & BS_GROUPBOX) != 0 )
+ if ( str == wxT("BUTTON") && (style & BS_GROUPBOX) == BS_GROUPBOX )
{
// Don't clip any static boxes, not just this one. This will
// result in flicker in overlapping static boxes, but at least