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); }
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; }
public void SetScrollBarInfo(Win32API.ScrollBarTypes scrollBarType, Win32API.SCROLLINFO scrollInfo) { Win32API.SetScrollInfo(this.currentWindowHandle, (int)scrollBarType, ref scrollInfo, 1); }