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:
@@ -2115,6 +2115,12 @@ void wxWindowMac::OnEraseBackground(wxEraseEvent& event)
|
|||||||
{
|
{
|
||||||
event.GetDC()->Clear() ;
|
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
|
else
|
||||||
{
|
{
|
||||||
event.Skip() ;
|
event.Skip() ;
|
||||||
|
Reference in New Issue
Block a user