Method GetScrollSize
GetScrollSize(IntPtr, bool, bool)
Retrieves the page size of the scroll box (thumb) in the specified scroll bar.
public static int GetScrollSize(IntPtr handle, bool flat, bool isVertical)
Parameters
handleIntPtrHandle to a scroll bar control or a window with a standard scroll bar.
flatboolIndicates whether scroll bar is flat.
isVerticalboolIndicates whether scroll bar is vertical or horizontal.
Returns
- int
If the function succeeds, the return value is the page size of the scroll box; otherwise zero.
GetScrollSize(bool)
Retrieves dimension of the arrow bitmap of a scroll bar, in pixels.
public static int GetScrollSize(bool isVertical)
Parameters
isVerticalboolIndicates whether scroll bar is vertical.
Returns
- int
Dimension of the arrow bitmap.