From b46ea7825d97507e29f3495da1ac11f4cfa681b3 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 21 Aug 2007 11:59:52 +0000 Subject: [PATCH] use live header button update when resizing, no XOR line git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index f040ab1d53..5adf868e6b 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1906,6 +1906,9 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) void wxListHeaderWindow::DrawCurrent() { +#if 1 + m_owner->SetColumnWidth( m_column, m_currentX - m_minX ); +#else int x1 = m_currentX; int y1 = 0; m_owner->ClientToScreen( &x1, &y1 ); @@ -1928,6 +1931,7 @@ void wxListHeaderWindow::DrawCurrent() dc.SetPen( wxNullPen ); dc.SetBrush( wxNullBrush ); +#endif } void wxListHeaderWindow::OnMouse( wxMouseEvent &event ) -- 2.45.2