X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f60dbe2e95abe3016bab87439b9c6343735395f..3bf93e1e9ac6b61e5220967d2ada2d4faec4dd9c:/src/os2/scrolbar.cpp?ds=sidebyside diff --git a/src/os2/scrolbar.cpp b/src/os2/scrolbar.cpp index a27773d308..8837a46404 100644 --- a/src/os2/scrolbar.cpp +++ b/src/os2/scrolbar.cpp @@ -226,6 +226,7 @@ bool wxScrollBar::OS2OnScroll ( ,m_windowId ); + vEvent.SetOrientation(IsVertical() ? wxVERTICAL : wxHORIZONTAL); vEvent.SetPosition(nPosition); vEvent.SetEventObject(this); return GetEventHandler()->ProcessEvent(vEvent); @@ -306,7 +307,7 @@ void wxScrollBar::Command ( wxCommandEvent& rEvent ) { - SetThumbPosition(rEvent.m_commandInt); + SetThumbPosition(rEvent.GetInt()); ProcessCommand(rEvent); } // end of wxScrollBar::Command