X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4354db179f5b9f3107cc532bb5232deccab90d0..eb6b14dc71402c42e0474779bfcd6e878383071e:/samples/widgets/toggle.cpp diff --git a/samples/widgets/toggle.cpp b/samples/widgets/toggle.cpp index 9c3dc354bc..1179bf88ee 100644 --- a/samples/widgets/toggle.cpp +++ b/samples/widgets/toggle.cpp @@ -4,7 +4,6 @@ // 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 ///////////////////////////////////////////////////////////////////////////// @@ -526,7 +525,7 @@ wxBitmap ToggleWidgetsPage::CreateBitmap(const wxString& label) 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")