//Information about the scroll bar. private SCROLLINFO GetScrollInfo(SBOrientation orientation, ScrollInfoMask mask) { SCROLLINFO si = new SCROLLINFO(); si.cbSize = (uint)Marshal.SizeOf <SCROLLINFO>(si); si.fMask = mask; GetScrollInfo(this.Handle, orientation, ref si); return(si); }
private static extern bool GetScrollInfo(IntPtr hwnd, SBOrientation fnBar, ref SCROLLINFO lpsi);
public static extern int SetScrollInfo(IntPtr hWnd, SBOrientation fnBar, ref SCROLLINFO si, bool redraw);
public static extern bool GetScrollInfo(IntPtr hwnd, SBOrientation fnBar, ref SCROLLINFO lpsi);