X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f0cf38b706429b69ae87b3d452665bac59356c93..9ce754611c77501ecab87f76d948535d55769e91:/samples/listctrl/listtest.cpp?ds=sidebyside diff --git a/samples/listctrl/listtest.cpp b/samples/listctrl/listtest.cpp index dd01efe4f8..ff643ad850 100644 --- a/samples/listctrl/listtest.cpp +++ b/samples/listctrl/listtest.cpp @@ -9,11 +9,6 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation -#pragma interface -#endif - // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wxprec.h" @@ -491,7 +486,6 @@ void MyFrame::InitWithReportItems() m_listCtrl->SetItem( item ); m_listCtrl->SetTextColour(*wxBLUE); - m_listCtrl->SetBackgroundColour(*wxLIGHT_GREY); m_listCtrl->SetColumnWidth( 0, wxLIST_AUTOSIZE ); m_listCtrl->SetColumnWidth( 1, wxLIST_AUTOSIZE ); @@ -724,7 +718,7 @@ void MyListCtrl::OnColClick(wxListEvent& event) int col = event.GetColumn(); // set or unset image - static x = false; + static bool x = false; x = !x; SetColumnImage(col, x ? 0 : -1);