X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e736b21a8c9295b42a528d76863559a4265dab02..781bdbb410f421a1c93655217f8729160b6f4aa5:/src/generic/panelg.cpp diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index f29cf4019b..3bb937f349 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -124,7 +124,10 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id, if ( !wxWindow::Create(parent, id, pos, size, style, name) ) return false; - SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); +#ifdef __WXMSW__ + // panels don't have the same colour as normal windows under Windows + SetDefaultBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); +#endif // __WXMSW__ return true; }