X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b047e876e0f3189f86145b8f4754d0bf10ba38c3..f8a7e79913144094f2916cf20a44754841744ef9:/src/generic/headerctrlg.cpp diff --git a/src/generic/headerctrlg.cpp b/src/generic/headerctrlg.cpp index 48e3117c39..ac50c2e173 100644 --- a/src/generic/headerctrlg.cpp +++ b/src/generic/headerctrlg.cpp @@ -258,26 +258,14 @@ void wxHeaderCtrl::ClearMarkers() dcover.Clear(); } -void wxHeaderCtrl::UpdateResizingMarker(int xPhysical) -{ - wxClientDC dc(this); - - wxDCOverlay dcover(m_overlay, &dc); - dcover.Clear(); - - // unfortunately drawing the marker over the parent window doesn't work as - // it's usually covered by another window (the main control view) so just - // draw the marker over the header itself, even if it makes it not very - // useful - dc.SetPen(*wxLIGHT_GREY_PEN); - dc.DrawLine(xPhysical, 0, xPhysical, GetClientSize().y); -} - void wxHeaderCtrl::EndDragging() { - ClearMarkers(); - - m_overlay.Reset(); + // We currently only use markers for reordering, not for resizing + if (IsReordering()) + { + ClearMarkers(); + m_overlay.Reset(); + } // don't use the special dragging cursor any more SetCursor(wxNullCursor); @@ -344,7 +332,6 @@ void wxHeaderCtrl::StartOrContinueResizing(unsigned int col, int xPhysical) } //else: we had already done the above when we started - UpdateResizingMarker(xPhysical); } } @@ -497,8 +484,8 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) GetClientSize(&w, &h); #ifdef __WXGTK__ - int vw; - GetVirtualSize(&vw, NULL); +// int vw; +// GetVirtualSize(&vw, NULL); #endif wxAutoBufferedPaintDC dc(this); @@ -553,8 +540,8 @@ void wxHeaderCtrl::OnPaint(wxPaintEvent& WXUNUSED(event)) #ifdef __WXGTK__ if (i == count-1) { - colWidth = wxMax( colWidth, vw - xpos ); - state |= wxCONTROL_EXPANDED; +// colWidth = wxMax( colWidth, vw - xpos ); + state |= wxCONTROL_DIRTY; } #endif