]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/listctrl/listtest.cpp
COmpilation fix.
[wxWidgets.git] / samples / listctrl / listtest.cpp
index 937991839e1ca293ab94ba482d32308d9a7b204c..fed6bae9f8341994e2e6b22b54e0572cda6c90fa 100644 (file)
@@ -672,6 +672,13 @@ void MyListCtrl::LogColEvent(const wxListEvent& event, const wxChar *name)
 void MyListCtrl::OnColBeginDrag(wxListEvent& event)
 {
     LogColEvent( event, wxT("OnColBeginDrag") );
+
+    if ( event.GetColumn() == 0 )
+    {
+        wxLogMessage(_T("Resizing this column shouldn't work."));
+
+        event.Veto();
+    }
 }
 
 void MyListCtrl::OnColDragging(wxListEvent& event)