X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..5b077d483bcd47bcd1c3e89a9adc1d6b1a44e046:/include/wx/msw/slider95.h?ds=sidebyside diff --git a/include/wx/msw/slider95.h b/include/wx/msw/slider95.h index 445d8f3da5..612c5f5044 100644 --- a/include/wx/msw/slider95.h +++ b/include/wx/msw/slider95.h @@ -5,8 +5,8 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _SLIDER95_H_ @@ -51,9 +51,18 @@ public: virtual int GetValue(void) const ; virtual void SetValue(int); + void GetSize(int *x, int *y) const ; + wxSize GetSize() const { return wxWindow::GetSize(); } + void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + void SetSize(const wxSize& size) { wxWindow::SetSize(size); } + void GetPosition(int *x, int *y) const ; + wxPoint GetPosition() const { return wxWindow::GetPosition(); } + bool Show(bool show); void SetRange(int minValue, int maxValue); @@ -83,11 +92,6 @@ public: inline WXHWND GetEditValue() const { return m_staticValue; } virtual bool ContainsHWND(WXHWND hWnd) const; - // Backward compatibility: translate to familiar wxEVT_COMMAND_SLIDER_UPDATED -#if WXWIN_COMPATIBILITY - void OnScroll(wxScrollEvent& event); -#endif - void Command(wxCommandEvent& event); virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, WXUINT message, WXWPARAM wParam, WXLPARAM lParam); @@ -103,7 +107,6 @@ public: int m_pageSize; int m_lineSize; int m_tickFreq; -DECLARE_EVENT_TABLE() }; #endif