Exemplo n.º 1
0
        public Win32API.SCROLLINFO GetScrollBarInfo(Win32API.ScrollBarTypes scrollBarType)
        {
            Win32API.SCROLLINFO scrollInfo = new Win32API.SCROLLINFO();
            scrollInfo.cbSize = (uint)Marshal.SizeOf(scrollInfo);
            scrollInfo.fMask  = (uint)Win32API.ScrollInfoMask.SIF_ALL;

            Win32API.GetScrollInfo(this.currentWindowHandle, (int)scrollBarType, ref scrollInfo);

            return(scrollInfo);
        }
Exemplo n.º 2
0
        public Win32API.SCROLLINFO GetScrollBarInfo(Win32API.ScrollBarTypes scrollBarType)
        {
            Win32API.SCROLLINFO scrollInfo = new Win32API.SCROLLINFO();
            scrollInfo.cbSize = (uint)Marshal.SizeOf(scrollInfo);
            scrollInfo.fMask = (uint)Win32API.ScrollInfoMask.SIF_ALL;

            Win32API.GetScrollInfo(this.currentWindowHandle, (int)scrollBarType, ref scrollInfo);

            return scrollInfo;
        }
Exemplo n.º 3
0
 public void SetScrollBarInfo(Win32API.ScrollBarTypes scrollBarType, Win32API.SCROLLINFO scrollInfo)
 {
     Win32API.SetScrollInfo(this.currentWindowHandle, (int)scrollBarType, ref scrollInfo, 1);
 }