From: Julian Smart Date: Mon, 7 Feb 2005 14:57:14 +0000 (+0000) Subject: Workaround for static controls appearing with a white background X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/95b838bed269ca5fc8570604b82dffc434935e25?ds=inline Workaround for static controls appearing with a white background on otherwise grey panels on WinCE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index ff850d052b..93bb178b2d 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -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; }