X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cb0afb266214f827417c42474168c7edda7c953e..29281095c4959cbadfcc66efccf679c6c25c7dc7:/src/generic/panelg.cpp diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index 81e5700262..f29cf4019b 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -121,7 +121,12 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id, long style, const wxString& name) { - return wxWindow::Create(parent, id, pos, size, style, name); + if ( !wxWindow::Create(parent, id, pos, size, style, name) ) + return false; + + SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE)); + + return true; } wxPanel::~wxPanel()