]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
Include wx/timer.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / src / generic / listctrl.cpp
index a461b1dca02fcb7ca2a32608c06634fc1bbd2221..99b530c7d72e1cb22929b705d057ed3244f53ac6 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_LISTCTRL
 
 #ifndef WX_PRECOMP
-    #include "wx/app.h"
     #include "wx/dynarray.h"
+    #include "wx/app.h"
     #include "wx/dcscreen.h"
     #include "wx/textctrl.h"
 #endif
@@ -412,7 +412,7 @@ class WXDLLEXPORT wxListHeaderWindow : public wxWindow
 {
 protected:
     wxListMainWindow  *m_owner;
-    wxCursor          *m_currentCursor;
+    const wxCursor    *m_currentCursor;
     wxCursor          *m_resizeCursor;
     bool               m_isDragging;
 
@@ -4612,13 +4612,6 @@ void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
 
 void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
 {
-    int cw, ch, vw, vh;
-    GetVirtualSize(&vw, &vh);
-    GetClientSize(&cw, &ch);
-
-    if ( event.GetOrientation() == wxVERTICAL && ch >= vh )
-        return;
-
     // update our idea of which lines are shown when we redraw the window the
     // next time
     ResetVisibleLinesRange();