IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase)
-#if !wxUSE_TOOLBAR_NATIVE || defined(__WXUNIVERSAL__)
+#if !wxUSE_TOOLBAR_NATIVE
#include "wx/toolbar.h"
IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxToolBarSimple)
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
}