I have using the GetScrollInfo native method to get the scroll values of the control and have set the values to my custom scrollbars. I Can able to find the minimum, maximum, value and the large change of the system scrollbar by using the SCROLLINFO. but i could not able to get the SmallChange value.
Code Snippet:
GetScrollInfo(control.Handle, SB_HORZ, ref hScrollInfo)
private void UpdateScrollBarValues(ScrollBarBase bar, ref SCROLLINFO scrollInfo)
{
bar.Minimum = scrollInfo.nMin;
bar.Maximum = scrollInfo.nMax;
bar.Value = scrollInfo.nPos;
bar.LargeChange = scrollInfo.nPage;
//How can we calculate or set the
//bar.SmallChange = ??
}
Is there any other alternate method to find the small change of the system scrollbar is available??