]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/scrolbar.cpp
placeholder
[wxWidgets.git] / src / os2 / scrolbar.cpp
index a1f56be9c7de4263eae3abd3660613c2ee2389ed..8b88e4078cf083b77ba6ffda69cbcced2096f962 100644 (file)
@@ -40,7 +40,7 @@ bool wxScrollBar::Create (
     int                             nWidth = rSize.x;
     int                             nHeight = rSize.y;
 
-    if (!parent)
+    if (!pParent)
         return FALSE;
     pParent->AddChild(this);
     SetName(rsName);
@@ -226,6 +226,7 @@ bool wxScrollBar::OS2OnScroll (
                                            ,m_windowId
                                           );
 
+    vEvent.SetOrientation(IsVertical() ? wxVERTICAL : wxHORIZONTAL);
     vEvent.SetPosition(nPosition);
     vEvent.SetEventObject(this);
     return GetEventHandler()->ProcessEvent(vEvent);