]> git.saurik.com Git - wxWidgets.git/commitdiff
use SetDefaultBackgroundColour() instead of SetBgColour()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Apr 2004 12:13:32 +0000 (12:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Apr 2004 12:13:32 +0000 (12:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/panelg.cpp

index 04db45b0836c1e64d1da669fc5532d2a25fdb803..3bb937f34935ac6dc6644c029335d85995838cbf 100644 (file)
@@ -124,9 +124,10 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id,
     if ( !wxWindow::Create(parent, id, pos, size, style, name) )
         return false;
 
-#ifndef __WXMAC__
-    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
-#endif
+#ifdef __WXMSW__
+    // panels don't have the same colour as normal windows under Windows
+    SetDefaultBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
+#endif // __WXMSW__
 
     return true;
 }