I am going to assume that you are drawing directly on the scrollbox and this means you must control the scroll information to get it to show.
When the POSITION and RANGE match you are at the end.
you can set the RANGE of the scrollbar that should turn it on, indicating you want it viewed.
so, if you have an image to draw that is taller than the scrollbox's client, you can set the RANGE to the Image Height - CLientHeight and that will turn it on. The POSITION should match the RANGE when you are at the bottom of the slide.
Also, one thing to note, if the Horizontal scrollbar is showing, the ClientHeight will be that much smaller.
Getting the CLientRect reports the visiable area without scrollbars, so it will get smaller when the bars show.
So, when calculating the Vertical values, the horizontal scrollbar will affect the results.
Does that help at all ?