X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c8b5f745c40c24b266e58b8870915558ddf14561..4e0e692f033442a2f700771a209ca08e538411b0:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 1f9123f388..c1f50464dc 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -755,6 +755,7 @@ void wxWindow::SetScrollbar( ); } ::WinSendMsg(m_hWndScrollBarHorz, SBM_SETSCROLLBAR, (MPARAM)nPos, MPFROM2SHORT(0, (SHORT)nRange1)); + ::WinSendMsg(m_hWndScrollBarHorz, SBM_SETTHUMBSIZE, MPFROM2SHORT((SHORT)nThumbVisible, (SHORT)nRange1), (MPARAM)0); } } else @@ -804,6 +805,7 @@ void wxWindow::SetScrollbar( ); } ::WinSendMsg(m_hWndScrollBarVert, SBM_SETSCROLLBAR, (MPARAM)nPos, MPFROM2SHORT(0, (SHORT)nRange1)); + ::WinSendMsg(m_hWndScrollBarVert, SBM_SETTHUMBSIZE, MPFROM2SHORT((SHORT)nThumbVisible, (SHORT)nRange1), (MPARAM)0); } m_nYThumbSize = nThumbVisible; }