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
This commit is contained in:
Julian Smart 2005-02-07 14:57:14 +00:00
parent e4535381d5
commit 95b838bed2

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