]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/slider95.cpp
added Show/HideNativeCaret() (patch 759924)
[wxWidgets.git] / src / msw / slider95.cpp
index 3e07c77a938ed791e5bb56b2e3ba91baa76a4790..c6d402a15a4544875d24ccdd192a783530599407 100644 (file)
@@ -594,9 +594,13 @@ void wxSlider95::SetRange(int minValue, int maxValue)
 WXHBRUSH wxSlider95::OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
             WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
 {
+#ifndef __WXWINCE__
     if ( nCtlColor == CTLCOLOR_SCROLLBAR )
         return 0;
-
+#else
+    if ( nCtlColor != CTLCOLOR_STATIC )
+        return 0;
+#endif
     // Otherwise, it's a static
     return wxControl::OnCtlColor(pDC, pWnd, nCtlColor, message, wParam, lParam);
 }