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:
parent
caea50acee
commit
b8335252d2
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user