give the panel 3D grey colour by default: as it's not a native control, we must give it a colour explicitly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-04-01 11:05:50 +00:00
parent e9cafd4289
commit e736b21a8c

View 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()