From b09e1f29874bca65b9beb8a5df954ac49c8111df Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 19 Jun 2000 08:52:55 +0000 Subject: [PATCH] may be resizing finally works now (I am not even sure any more) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index d14f77d197..f1d8176443 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -1239,9 +1239,13 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) int xEnd = x + wCol; + // VZ: no, draw it normally - this is better now as we allow resizing + // of the last column as well +#if 0 // let the last column occupy all available space if ( i == numColumns - 1 ) cw = w-x-1; +#endif // 0 dc.SetPen( *wxWHITE_PEN ); @@ -1303,6 +1307,7 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event ) { ReleaseMouse(); m_isDragging = FALSE; + m_dirty = TRUE; m_owner->SetColumnWidth( m_column, m_currentX-m_minX ); } else