don't draw background at all if bg style is custom

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-15 19:15:53 +00:00
parent caea50acee
commit b8335252d2

View File

@ -4070,6 +4070,13 @@ bool wxWindowMSW::HandleEraseBkgnd(WXHDC hdc)
void wxWindowMSW::OnEraseBackground(wxEraseEvent& event) void wxWindowMSW::OnEraseBackground(wxEraseEvent& event)
{ {
if ( GetBackgroundStyle() == wxBG_STYLE_CUSTOM )
{
// don't skip the event here, custom background means that the app is
// drawing it itself in its OnPaint()
return;
}
if ( !m_hasBgCol ) if ( !m_hasBgCol )
{ {
event.Skip(); event.Skip();