]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/panelg.cpp
Workaround for static controls appearing with a white background
[wxWidgets.git] / src / generic / panelg.cpp
index ff850d052b99abae00bafb6f3018cbd26bb1a1c0..93bb178b2d70b3f7afc75f3193a00b38e5e1aad9 100644 (file)
@@ -125,6 +125,11 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id,
     // so that non-solid background renders correctly under GTK+:
     SetThemeEnabled(true);
 
+#ifdef __WXWINCE__
+    // Required get solid control backgrounds under WinCE
+    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
+#endif
+
     return true;
 }