51 references to SCROLLBAR_CONSTANTS
System.Windows.Forms (16)
System\Windows\Forms\Control.cs (1)
7493if (PInvoke.GetScrollInfo(this, SCROLLBAR_CONSTANTS.SB_HORZ, ref si))
System\Windows\Forms\Controls\ListView\ListView.cs (1)
2204if (PInvoke.GetScrollInfo(this, SCROLLBAR_CONSTANTS.SB_HORZ, ref si))
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2741if (PInvoke.GetScrollInfo(this, SCROLLBAR_CONSTANTS.SB_HORZ, ref si))
System\Windows\Forms\Scrolling\HScrollBar.cs (1)
18cp.Style |= (int)SCROLLBAR_CONSTANTS.SB_HORZ;
System\Windows\Forms\Scrolling\HScrollProperties.cs (2)
17private protected override SCROLLBAR_CONSTANTS Orientation => SCROLLBAR_CONSTANTS.SB_HORZ;
System\Windows\Forms\Scrolling\ScrollableControl.cs (3)
896private unsafe int ScrollThumbPosition(SCROLLBAR_CONSTANTS fnBar) 1273pos = ScrollThumbPosition(SCROLLBAR_CONSTANTS.SB_VERT); 1367pos = ScrollThumbPosition(SCROLLBAR_CONSTANTS.SB_HORZ);
System\Windows\Forms\Scrolling\ScrollBar.cs (3)
40_scrollOrientation = (CreateParams.Style & (int)SCROLLBAR_CONSTANTS.SB_VERT) != 0 617PInvoke.SetScrollInfo(this, SCROLLBAR_CONSTANTS.SB_CTL, ref si, true); 699PInvoke.GetScrollInfo(this, SCROLLBAR_CONSTANTS.SB_CTL, ref si);
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
171private protected abstract SCROLLBAR_CONSTANTS Orientation { get; }
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
22cp.Style |= (int)SCROLLBAR_CONSTANTS.SB_VERT;
System\Windows\Forms\Scrolling\VScrollProperties.cs (2)
17private protected override SCROLLBAR_CONSTANTS Orientation => SCROLLBAR_CONSTANTS.SB_VERT;
System.Windows.Forms.Primitives (16)
Windows.Win32.PInvoke.USER32.dll.g.cs (9)
1790 /// <inheritdoc cref="GetScrollInfo(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS, winmdroot.UI.WindowsAndMessaging.SCROLLINFO*)"/> 1792 internal static unsafe winmdroot.Foundation.BOOL GetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, ref winmdroot.UI.WindowsAndMessaging.SCROLLINFO lpsi) 1821 internal static unsafe winmdroot.Foundation.BOOL GetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, winmdroot.UI.WindowsAndMessaging.SCROLLINFO* lpsi) 1829 static extern unsafe winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, winmdroot.UI.WindowsAndMessaging.SCROLLINFO* lpsi); 3295 /// <inheritdoc cref="SetScrollInfo(winmdroot.Foundation.HWND, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS, winmdroot.UI.WindowsAndMessaging.SCROLLINFO*, winmdroot.Foundation.BOOL)"/> 3297 internal static unsafe int SetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, in winmdroot.UI.WindowsAndMessaging.SCROLLINFO lpsi, winmdroot.Foundation.BOOL redraw) 3329 internal static extern unsafe int SetScrollInfo(winmdroot.Foundation.HWND hwnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, winmdroot.UI.WindowsAndMessaging.SCROLLINFO* lpsi, winmdroot.Foundation.BOOL redraw); 3354 internal static int SetScrollPos(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, int nPos, winmdroot.Foundation.BOOL bRedraw) 3362 static extern int LocalExternFunction(winmdroot.Foundation.HWND hWnd, winmdroot.UI.WindowsAndMessaging.SCROLLBAR_CONSTANTS nBar, int nPos, winmdroot.Foundation.BOOL bRedraw);
Windows\Win32\PInvoke.EnableScrollBar.cs (1)
9public static BOOL EnableScrollBar<T>(T hWnd, SCROLLBAR_CONSTANTS wSBflags, ENABLE_SCROLL_BAR_ARROWS wArrows)
Windows\Win32\PInvoke.GetScrollInfo.cs (2)
8/// <inheritdoc cref="GetScrollInfo(HWND, SCROLLBAR_CONSTANTS, ref SCROLLINFO)"/> 9public static BOOL GetScrollInfo<T>(T hwnd, SCROLLBAR_CONSTANTS nBar, ref SCROLLINFO lpsi)
Windows\Win32\PInvoke.SetScrollInfo.cs (2)
8/// <inheritdoc cref="SetScrollInfo(HWND, SCROLLBAR_CONSTANTS, in SCROLLINFO, BOOL)"/> 9public static int SetScrollInfo<T>(T hWnd, SCROLLBAR_CONSTANTS nBar, ref SCROLLINFO lpsi, BOOL redraw)
Windows\Win32\PInvoke.SetScrollPos.cs (2)
8/// <inheritdoc cref="SetScrollPos(HWND, SCROLLBAR_CONSTANTS, int, BOOL)"/> 9public static int SetScrollPos<T>(T hWnd, SCROLLBAR_CONSTANTS nBar, int nPos, BOOL bRedraw)
System.Windows.Forms.Tests (19)
System\Windows\Forms\ScrollBarTests.cs (19)
440Assert.True(PInvoke.GetScrollInfo(control.HWND, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 617Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 747Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 762Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 797Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 812Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 883Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 905Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 946Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 969Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1069Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1091Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1132Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1154Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1614Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1636Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1678Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 1700Assert.True(PInvoke.GetScrollInfo((HWND)control.Handle, SCROLLBAR_CONSTANTS.SB_CTL, ref si)); 3152cp.Style |= (int)SCROLLBAR_CONSTANTS.SB_VERT;