Busy making my first attempt on scroll bars. Came across the function SetScrollRange.... What value do i set to nMaxPos (4th argument)...
Busy making my first attempt on scroll bars. Came across the function SetScrollRange.... What value do i set to nMaxPos (4th argument)...
Read the MSDN page on it for information on nMaxPos:
http://msdn.microsoft.com/en-us/libr...99(VS.85).aspx
However, please note this:The default range for a standard scroll bar is 0 through 100. The default range for a scroll bar control is empty (both the nMinPos and nMaxPos parameter values are zero). The difference between the values specified by the nMinPos and nMaxPos parameters must not be greater than the value of MAXLONG.
So, you should be using this: http://msdn.microsoft.com/en-us/libr...95(VS.85).aspxNote The SetScrollRange function is provided for backward compatibility. New applications should use the SetScrollInfo function.