]> git.saurik.com Git - wxWidgets.git/commitdiff
use live header button update when resizing, no XOR line
authorRobert Roebling <robert@roebling.de>
Tue, 21 Aug 2007 11:59:52 +0000 (11:59 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 21 Aug 2007 11:59:52 +0000 (11:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index f040ab1d53331c927490fff2f259bfe6ea1dddb9..5adf868e6bfea763208689929283a813bae3d7c8 100644 (file)
@@ -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 )