diff --git a/docs/changes.txt b/docs/changes.txt index d587258b1d..90c10c4f21 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -200,6 +200,7 @@ wxGTK: wxMSW: - no longer take ampersand into account in wxStaticText::GetBestSize +- set orientation for scrolbar events 2.4.0 ----- diff --git a/src/msw/scrolbar.cpp b/src/msw/scrolbar.cpp index d10d08daad..4823e54f29 100644 --- a/src/msw/scrolbar.cpp +++ b/src/msw/scrolbar.cpp @@ -239,6 +239,7 @@ bool wxScrollBar::MSWOnScroll(int WXUNUSED(orientation), WXWORD wParam, } wxScrollEvent event(scrollEvent, m_windowId); + event.SetOrientation(IsVertical() ? wxVERTICAL : wxHORIZONTAL); event.SetPosition(position); event.SetEventObject( this );