// 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()
{
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
SubclassWin(GetHWND());
- ::SetWindowText((HWND) m_hWnd, wxT(""));
+ ::SetWindowText((HWND) m_hWnd, wxEmptyString);
SetFont(parent->GetFont());
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);
}