]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
MinGW warning fix.
[wxWidgets.git] / src / generic / listctrl.cpp
index 40acbcc1a756f4712443cf34753ddc8849e14bd4..bb0b69bc1b47eda01bb178e6edf4c88039cee938 100644 (file)
@@ -1746,7 +1746,7 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
                                     dc,
                                     wxRect(x, HEADER_OFFSET_Y, cw, h - 2),
                                     m_parent->IsEnabled() ? 0
-                                                          : wxCONTROL_DISABLED
+                                                          : (int)wxCONTROL_DISABLED
                                 );
 
         // see if we have enough space for the column label
@@ -2874,6 +2874,15 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
     if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
         return;
 
+#if wxUSE_MOUSEWHEEL
+    if (event.GetEventType() == wxEVT_MOUSEWHEEL)
+    {
+        // let the base handle mouse wheel events.
+        event.Skip();
+        return;
+    }
+#endif
+
     if ( !HasCurrent() || IsEmpty() )
         return;