/////////////////////////////////////////////////////////////////////////////
-// Name: slider95.h
+// Name: wx/msw/slider95.h
// Purpose: wxSlider95 class
// Author: Julian Smart
// Modified by:
// Created: 01/02/97
// RCS-ID: $Id$
// Copyright: (c) Julian Smart
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _SLIDER95_H_
#pragma interface "slider95.h"
#endif
-#include "wx/control.h"
-
-WXDLLEXPORT_DATA(extern const char*) wxSliderNameStr;
-
// Slider
-class WXDLLEXPORT wxSlider95 : public wxControl
+class WXDLLEXPORT wxSlider95 : public wxSliderBase
{
- DECLARE_DYNAMIC_CLASS(wxSlider95)
-
public:
wxSlider95();
virtual int GetValue() const ;
virtual void SetValue(int);
- void GetSize(int *x, int *y) const ;
- void GetPosition(int *x, int *y) const ;
+ virtual void DoGetSize(int *width, int *height) const;
+
+ void GetSize(int *w, int *h) const;
+
+ void GetPosition(int *x, int *y) const;
bool Show(bool show);
void Command(wxCommandEvent& event);
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
- void MSWOnVScroll(WXWORD wParam, WXWORD pos, WXHWND control);
- void MSWOnHScroll(WXWORD wParam, WXWORD pos, WXHWND control);
+ virtual bool MSWOnScroll(int orientation, WXWORD wParam,
+ WXWORD pos, WXHWND control);
protected:
WXHWND m_staticMin;
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);
+
+ DECLARE_DYNAMIC_CLASS(wxSlider95)
};
#endif