respect Veto()ing the column resize events; added test for this in the sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-03-17 13:24:45 +00:00
parent 6d89ddefa9
commit 355f240724
2 changed files with 23 additions and 13 deletions

View 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)