X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..632b58cdce7a1b62f7aa1a26acc61e5ced04494b:/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")