X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef6816ef25f4d5e0ff0100fd7e402419e9c0a794..ba8546912daa12cea8076e08f1694a03e520dfe2:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 320bd80bee..f906802a0f 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1041,6 +1041,9 @@ bool wxWindowBase::SetBackgroundColour( const wxColour &colour ) return false; m_hasBgCol = colour.Ok(); + if ( m_backgroundStyle != wxBG_STYLE_CUSTOM ) + m_backgroundStyle = m_hasBgCol ? wxBG_STYLE_COLOUR : wxBG_STYLE_SYSTEM; + m_inheritBgCol = m_hasBgCol; m_backgroundColour = colour; SetThemeEnabled( !m_hasBgCol && !m_foregroundColour.Ok() ); @@ -2210,7 +2213,7 @@ void wxWindowBase::OnMiddleClick( wxMouseEvent& event ) #else "", #endif -#if __WXDEBUG__ +#ifdef __WXDEBUG__ _T(" Debug build"), #else _T(""),