]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/scrolbar.cpp
Applied dir control token patch.
[wxWidgets.git] / src / os2 / scrolbar.cpp
index a27773d3080f62eee90b6c05c1110151a9d9c3d6..8837a464042ae9c8a4e9e944a1230db4d45b2a1c 100644 (file)
@@ -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