## wxScrollWinEvent

A scroll event holds information about events sent from scrolling windows.

Derived from

wxEvent
wxObject

Include files

<wx/event.h>

Event table macros

To process a scroll window event, use these event handler macros to direct input to member functions that take a wxScrollWinEvent argument. You can use the EVT_SCROLLWIN... macros for intercepting scroll window events from the receiving window.

EVT_SCROLLWIN(func) | Process all scroll events.
EVT_SCROLLWIN_TOP(func) | Process wxEVT_SCROLLWIN_TOP scroll-to-top events.
EVT_SCROLLWIN_BOTTOM(func) | Process wxEVT_SCROLLWIN_TOP scroll-to-bottom events.
EVT_SCROLLWIN_LINEUP(func) | Process wxEVT_SCROLLWIN_LINEUP line up events.
EVT_SCROLLWIN_LINEDOWN(func) | Process wxEVT_SCROLLWIN_LINEDOWN line down events.
EVT_SCROLLWIN_PAGEUP(func) | Process wxEVT_SCROLLWIN_PAGEUP page up events.
EVT_SCROLLWIN_PAGEDOWN(func) | Process wxEVT_SCROLLWIN_PAGEDOWN page down events.
EVT_SCROLLWIN_THUMBTRACK(func) | Process wxEVT_SCROLLWIN_THUMBTRACK thumbtrack events (frequent events sent as the user drags the thumtrack).
EVT_SCROLLWIN_THUMBRELEASE(func) | Process wxEVT_SCROLLWIN_THUMBRELEASE thumb release events.

See also

wxWindow::OnScroll, wxScrollEvent, Event handling overview

Members

wxScrollWinEvent::wxScrollWinEvent
wxScrollWinEvent::GetOrientation
wxScrollWinEvent::GetPosition

### wxScrollWinEvent::wxScrollWinEvent

wxScrollWinEvent(WXTYPE commandType = 0, int id = 0, int pos = 0, int orientation = 0)

Constructor.

### wxScrollWinEvent::GetOrientation

int GetOrientation() const

Returns wxHORIZONTAL or wxVERTICAL, depending on the orientation of the scrollbar.

### wxScrollWinEvent::GetPosition

int GetPosition() const

Returns the position of the scrollbar.