]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/slider95.cpp
Removed redundant DSPs
[wxWidgets.git] / src / msw / slider95.cpp
index 6c811b81e04bf429cb85c6dd998fb6933916dd5a..041527b0b100cf1e1a307312014cbdaa2a8267bd 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "slider95.h"
 #endif
 
     #include <commctrl.h>
 #endif
 
-IMPLEMENT_DYNAMIC_CLASS(wxSlider, wxControl)
-
+IMPLEMENT_DYNAMIC_CLASS(wxSlider95, wxControl)
+
+/*
+       TODO PROPERTIES
+               value wxSL_DEFAULT_VALUE
+               min wxSL_DEFAULT_MIN
+               max wxSL_DEFAULT_MAX
+               tickfreq (long , 0 )
+               pagesize ( long )
+               linesize (long)
+               thumg (long)
+               tick (long)
+               selmin / selmax (long)
+*/
 // Slider
 wxSlider95::wxSlider95()
 {
@@ -155,7 +167,7 @@ bool wxSlider95::Create(wxWindow *parent, wxWindowID id,
 
     HWND scroll_bar = CreateWindowEx
         (
-            exStyle, TRACKBAR_CLASS, wxT(""),
+            exStyle, TRACKBAR_CLASS, wxEmptyString,
             msStyle,
             0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
             wxGetInstance(), NULL
@@ -174,7 +186,7 @@ bool wxSlider95::Create(wxWindow *parent, wxWindowID id,
 
     SubclassWin(GetHWND());
 
-    ::SetWindowText((HWND) m_hWnd, wxT(""));
+    ::SetWindowText((HWND) m_hWnd, wxEmptyString);
 
     SetFont(parent->GetFont());
 
@@ -594,9 +606,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);
 }