]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
added missing return on error
[wxWidgets.git] / src / generic / listctrl.cpp
index c97dd4631a9ee03e0801d46c2b73a0f93b097ec7..38985b43ff88f0e94900428509e362ce118c11b2 100644 (file)
@@ -19,6 +19,8 @@
 #pragma hdrstop
 #endif
 
+#if wxUSE_LISTCTRL
+
 #include "wx/dcscreen.h"
 #include "wx/app.h"
 #include "wx/listctrl.h"
@@ -3139,7 +3141,12 @@ void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
 
 void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
 {
-     wxScrolledWindow::OnScroll( event ) ;
+    // FIXME
+#ifdef __WXGTK__
+    wxScrolledWindow::OnScroll(event);
+#else
+    HandleOnScroll( event );
+#endif
 
 #if wxUSE_GENERIC_LIST_EXTENSIONS
 
@@ -3150,7 +3157,7 @@ void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
             {
                     lc->m_headerWin->Refresh() ;
 #ifdef __WXMAC__
-                        lc->m_headerWin->MacUpdateImmediately() ;
+                    lc->m_headerWin->MacUpdateImmediately() ;
 #endif
             }
     }
@@ -3901,3 +3908,5 @@ void wxListCtrl::SetFocus()
     if ( FindFocus() != this )
         m_mainWin->SetFocus();
 }
+
+#endif // wxUSE_LISTCTRL