X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f60dbe2e95abe3016bab87439b9c6343735395f..6ce43ac97db5cab1373d2e3c158849faffa8128d:/src/os2/scrolbar.cpp 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