]> git.saurik.com Git - wxWidgets.git/commitdiff
Workaround for static controls appearing with a white background
authorJulian Smart <julian@anthemion.co.uk>
Mon, 7 Feb 2005 14:57:14 +0000 (14:57 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 7 Feb 2005 14:57:14 +0000 (14:57 +0000)
on otherwise grey panels on WinCE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;
 }