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?
I have a hard time understanding your problem. Could you show us some code?
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.
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.
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
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