]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
really show the menubar (calling Show(TRUE) doesn't do it any more)
[wxWidgets.git] / src / generic / panelg.cpp
index 81e5700262bb6b6ee903e651d9ceb2e2699bb0ba..f29cf4019b51c30576163d51ce91031dc4dc114e 100644 (file)
@@ -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()