]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/toggle.cpp
Fix wrong in wxListCtrl::SetItemColumnImage() in r74716.
[wxWidgets.git] / samples / widgets / toggle.cpp
index 9c3dc354bcbd12cd67c04f53fe30ea48d50ad6f9..1179bf88ee4a3db9354dc45e624f55b4f9d63a21 100644 (file)
@@ -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")