// Purpose: Part of the widgets sample showing toggle control
// Author: Dimitri Schoolwerth, Vadim Zeitlin
// Created: 27 Sep 2003
-// Id: $Id$
// Copyright: (c) 2006 Wlodzmierz Skiba
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
wxBitmap bmp(180, 70); // shouldn't hardcode but it's simpler like this
wxMemoryDC dc;
dc.SelectObject(bmp);
- dc.SetBackground(wxBrush(*wxCYAN));
+ dc.SetBackground(*wxCYAN_BRUSH);
dc.Clear();
dc.SetTextForeground(*wxBLACK);
dc.DrawLabel(wxStripMenuCodes(m_textLabel->GetValue()) + wxT("\n")