use SetDefaultBackgroundColour() instead of SetBgColour()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -124,9 +124,10 @@ bool wxPanel::Create(wxWindow *parent, wxWindowID id,
|
|||||||
if ( !wxWindow::Create(parent, id, pos, size, style, name) )
|
if ( !wxWindow::Create(parent, id, pos, size, style, name) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
#ifndef __WXMAC__
|
#ifdef __WXMSW__
|
||||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
// panels don't have the same colour as normal windows under Windows
|
||||||
#endif
|
SetDefaultBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
|
||||||
|
#endif // __WXMSW__
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user