]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
corrected setting the locale of the c-lib for mac
[wxWidgets.git] / src / msw / window.cpp
index e56b767ca4746bfe90879ea1d17f83e3f3174aff..21055bce766c8bcb0d7fabb2c5b27fc5e7af5aa8 100644 (file)
@@ -4048,9 +4048,11 @@ WXHBRUSH wxWindowMSW::MSWGetSolidBgBrushForChild(wxWindow *child)
     return 0;
 }
 
-wxColour wxWindowMSW::MSWGetBgColourForChild(wxWindow * WXUNUSED(child))
+wxColour wxWindowMSW::MSWGetBgColourForChild(wxWindow *child)
 {
-    return m_hasBgCol ? GetBackgroundColour() : wxNullColour;
+    return m_inheritBgCol || (m_hasBgCol && child == this)
+                ? GetBackgroundColour()
+                : wxNullColour;
 }
 
 WXHBRUSH wxWindowMSW::MSWGetBgBrushForSelf(wxWindow *parent, WXHDC hDC)