]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
wxTextOutputStream::PutChar and text stream test
[wxWidgets.git] / src / common / wincmn.cpp
index 320bd80beed7b2f8766de9a01cd8f40aad2c576f..f906802a0f49a1c0b45d3c5f8d974e7736c03cb2 100644 (file)
@@ -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(""),