From: Vadim Zeitlin Date: Mon, 10 Feb 2003 16:11:55 +0000 (+0000) Subject: set orientation for scrolbar events X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/27e229f55a1e4688261cbc88e851d41b0f9e8e33 set orientation for scrolbar events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 );