]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/slider95.cpp
Check for NULL pointer
[wxWidgets.git] / src / msw / slider95.cpp
index 992b61e96e2ba4eeae7782eff23a676518b97dfd..213f6b0b67af441f1d5d186061bdae00b93994d5 100644 (file)
@@ -250,10 +250,17 @@ bool wxSlider95::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam,
             break;
 
         case SB_THUMBTRACK:
-        case SB_THUMBPOSITION:
             scrollEvent = wxEVT_SCROLL_THUMBTRACK;
             break;
 
+        case SB_THUMBPOSITION:
+            scrollEvent = wxEVT_SCROLL_THUMBRELEASE;
+            break;
+
+        case SB_ENDSCROLL:
+            scrollEvent = wxEVT_SCROLL_ENDSCROLL;
+            break;
+
         default:
             // unknown scroll event?
             return FALSE;