When I set maximum position of a Vertical Scroll Bar to 16 and page size is also 16 the bar is a bit smaller than the scrolling area.When maximum position and page is 100 everything is ok,the scrolling area is filled whith a bar.What's the problem?
Posted on 2006-07-23 14:52:03 by Sh@dow
I have a hard time understanding your problem. Could you show us some code?
Posted on 2006-07-23 19:09:18 by JimmyClif
ScrollInfo.cbSize=sizeof(MDISWinScrollInfo);
ScrollInfo.fMask=SIF_ALL;
ScrollInfo.nMax=16;
ScrollInfo.nMin=0;
ScrollInfo.nPage=16;
ScrollInfo.nPos=0;
//ScrollInfo.nTrackPos=
SetScrollInfo(ScrollHandle,SB_VERT,&ScrollInfo,TRUE);

As i understand the scrolling bar must be from top to the bottom in this case,but bar is a bit smaller.

Posted on 2006-07-24 09:40:09 by Sh@dow
To have the ScrollThumb fill the bar your nPage size should be nMax - nMin + 1 (in your example, 17).

Your counter-example of it filling the bar when both nPage and nMax = 100 is actually dependant on the size of the window. It only *seems* as though it's filling the bar.
For this you would need
  nMin = 0
  nMax = 100
  nPage = 101

hth

NAC
Posted on 2006-08-06 12:06:29 by Not-A-Clue