have bg style wxBG_STYLE_CUSTOM not skip event

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2008-03-19 13:23:41 +00:00
parent 1ba0de2efa
commit 65bea426fe

View File

@ -2115,6 +2115,12 @@ void wxWindowMac::OnEraseBackground(wxEraseEvent& event)
{
event.GetDC()->Clear() ;
}
else if ( GetBackgroundStyle() == wxBG_STYLE_CUSTOM )
{
// don't skip the event here, custom background means that the app
// is drawing it itself in its OnPaint(), so don't draw it at all
// now to avoid flicker
}
else
{
event.Skip() ;