- if ( !event.IsCancelled() )
- {
- const unsigned col = event.GetColumn();
- GetColumn(col).SetWidth(event.GetWidth());
- GetOwner()->OnColumnChange(col);
- }
+ wxDataViewCtrl * const owner = GetOwner();
+
+ const unsigned col = event.GetColumn();
+ owner->GetColumn(col)->SetWidth(event.GetWidth());
+ GetOwner()->OnColumnChange(col);
+ }
+
+ void OnEndReorder(wxHeaderCtrlEvent& event)
+ {
+ wxDataViewCtrl * const owner = GetOwner();
+ owner->ColumnMoved(owner->GetColumn(event.GetColumn()),
+ event.GetNewOrder());