More scrolling support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ed8fad817a
commit
2be39ac9d8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user