added EVT_HEADER_DRAGGING_CANCELLED event sent when either resizing or reordering operation is cancelled instead of having a special cancelled flag in normal END_RESIZE/REORDER events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-12-10 16:05:21 +00:00
parent 702f5349c6
commit 565804f2b9
6 changed files with 35 additions and 42 deletions

View File

@@ -176,12 +176,9 @@ private:
void OnEndResize(wxHeaderCtrlEvent& event)
{
if ( !event.IsCancelled() )
{
const unsigned col = event.GetColumn();
GetColumn(col).SetWidth(event.GetWidth());
GetOwner()->OnColumnChange(col);
}
const unsigned col = event.GetColumn();
GetColumn(col).SetWidth(event.GetWidth());
GetOwner()->OnColumnChange(col);
}
void OnEndReorder(wxHeaderCtrlEvent& event)