]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected redrawing of sash when resizing
authorRobert Roebling <robert@roebling.de>
Sun, 8 Feb 2004 20:58:05 +0000 (20:58 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 8 Feb 2004 20:58:05 +0000 (20:58 +0000)
    the columns. No longer any ghost line.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index ce68571c65e2ae049a07ac4df686eba7ac1cf9db..e2859684843794bbc90d8fa53123c88d73e5ccbc 100644 (file)
@@ -1808,8 +1808,6 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
 
 void wxListHeaderWindow::DrawCurrent()
 {
-    return;
-    
     int x1 = m_currentX;
     int y1 = 0;
     m_owner->ClientToScreen( &x1, &y1 );
@@ -1920,8 +1918,8 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event )
                 {
                     m_isDragging = TRUE;
                     m_currentX = x;
-                    DrawCurrent();
                     CaptureMouse();
+                    DrawCurrent();
                 }
                 //else: column resizing was vetoed by the user code
             }
@@ -1956,6 +1954,7 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event )
 void wxListHeaderWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) )
 {
     m_owner->SetFocus();
+    m_owner->Update();
 }
 
 bool wxListHeaderWindow::SendListEvent(wxEventType type, wxPoint pos)