X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57ff8a875bff6f8ba8a6616ed7095b74a835c622..78ca56690e93e14af43f5b6f090f474a0ff7d736:/src/os2/scrolbar.cpp?ds=sidebyside diff --git a/src/os2/scrolbar.cpp b/src/os2/scrolbar.cpp index a1f56be9c7..8b88e4078c 100644 --- a/src/os2/scrolbar.cpp +++ b/src/os2/scrolbar.cpp @@ -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);