UpdateResizingMarker(-1);
m_overlay.Reset();
+
+ // don't use the special dragging cursor any more
+ SetCursor(wxNullCursor);
}
void wxHeaderCtrl::EndResizing(int width)
EndDragging();
+ // if dragging was cancelled we must have already lost the mouse capture so
+ // don't try to release it
+ if ( width != -1 )
+ ReleaseMouse();
+
wxHeaderCtrlEvent event(wxEVT_COMMAND_HEADER_END_DRAG, GetId());
event.SetEventObject(this);
event.SetColumn(m_colBeingResized);
{
// start resizing the column
m_colBeingResized = col;
+ SetCursor(wxCursor(wxCURSOR_SIZEWE));
+ CaptureMouse();
UpdateResizingMarker(xPhysical);
}
else // on column itself