SetScrollInfo

[DllImport("user32.dll", SetLastError = true)]
public static extern int SetScrollInfo(
   IntPtr hwnd,
   int fnBar,
   [In] ref SCROLLINFO lpsi,
   bool fRedraw
);

Microsoft documentation: Link

Last updated