X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfc6fde4b1dd5bfd8ae22839ff9a69cf24eb9120..4c7852186d48a5b8f406462c2c3fa020f0a052bb:/include/wx/msw/slider95.h diff --git a/include/wx/msw/slider95.h b/include/wx/msw/slider95.h index a94978d8b1..498221213d 100644 --- a/include/wx/msw/slider95.h +++ b/include/wx/msw/slider95.h @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// 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_ @@ -16,15 +16,9 @@ #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(); @@ -87,8 +81,8 @@ public: 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; @@ -103,6 +97,8 @@ protected: virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + + DECLARE_DYNAMIC_CLASS(wxSlider95) }; #endif