return FALSE;
// Set it to grey (or other 3D face colour)
- wxSystemSettings settings;
- SetBackgroundColour(settings.GetSystemColour(wxSYS_COLOUR_3DFACE));
+ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
if ( GetWindowStyleFlag() & wxTB_VERTICAL )
{
#if wxUSE_PALETTE
#ifndef __WXGTK__
- memDC.SetPalette(wxNullPalette);
+ if (bitmap.GetPalette())
+ memDC.SetPalette(wxNullPalette);
#endif
#endif // wxUSE_PALETTE
}