NativeScrollBar

Class Overview
Provides operations on windows of WindowClass type ScrollBar.



public NativeScrollBar(WindowControl src)
Explanation
Constructor.

Parameter
        src
             A WindowControl object for the target window



public NativeScrollBar(WindowsAppFriend app, IntPtr windowHandle)
Explanation
Constructor.

Parameters
app
Application manipulation object
windowHandle
Window handle



public bool IsVertical{get;}
Explanation
Returns true if the scroll bar is vertical.



public int ScrollPos{get;}
Explanation
Returns the current position of the scroll bar.



public void EmulateScroll(int pos)
Explanation
Sets the current scroll position.
Produces a WM_HSCROLL or WM_VSCROLL notification.
Uses SB_THUMBTRACK type scrolling.

Parameter
pos
The position to set



public void EmulateScroll(int posAsync async)
Explanation
Sets the current scroll position asynchronously.
Produces a WM_HSCROLL or WM_VSCROLL notification.
Uses SB_THUMBTRACK type scrolling.
Parameters
pos
The position to set
async
Asynchronous execution object



public void GetScrollRange(ref int min, ref int max)
Explanation
Obtains the scroll bar's scroll range.

Parameters
min
Minimum value
max
Maximum value

JR