]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.cpp
disable warning about data truncation (810) for icc (this is a useful warning and...
[wxWidgets.git] / samples / listctrl / listtest.cpp
index adf5a082ec79291e1d54a99fb8417ff7c7364d9d..065a3e6b2e29b3cb7183b40137ae7610c5b3be85 100644 (file)
@@ -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"
 
@@ -722,7 +717,11 @@ void MyListCtrl::SetColumnImage(int col, int image)
 void MyListCtrl::OnColClick(wxListEvent& event)
 {
     int col = event.GetColumn();
-    SetColumnImage(col, 0);
+
+    // set or unset image
+    static bool x = false;
+    x = !x;
+    SetColumnImage(col, x ? 0 : -1);
 
     wxLogMessage( wxT("OnColumnClick at %d."), col );
 }