Пример #1
0
        //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);
Пример #3
0
 public static extern int SetScrollInfo(IntPtr hWnd, SBOrientation fnBar, ref SCROLLINFO si, bool redraw);
Пример #4
0
 public static extern bool GetScrollInfo(IntPtr hwnd, SBOrientation fnBar, ref SCROLLINFO lpsi);