Table of Contents

Method GetScrollPos

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

GetScrollPos(IntPtr, bool, bool)

Retrieves the current position of the scroll box (thumb) in the specified scroll bar.

public static int GetScrollPos(IntPtr handle, bool flat, bool isVertical)

Parameters

handle IntPtr

Handle to a scroll bar control or a window with a standard scroll bar.

flat bool

Indicates whether scroll bar is flat.

isVertical bool

Indicates whether scroll bar is vertical or horizontal.

Returns

int

If the function succeeds, the return value is the current position of the scroll box; otherwise zero.