GetScrollBars method


Available for Window, MDIWindow, DialogBox, Edit, Picture and RichEdit objects.

Prototype

GetScrollBars Proto hWnd:HWND

Syntax

Invoke GetScrollBars, hWnd

Function

Reads the ScrollBars property for an object.

Parameters

hWnd

Handle to the object.

Return value

Eax/Rax returns the current scroll bar options for the object.


Possible returned values are:

0  ecNone            Object has no scroll bars
1  ecHorizontal    Object has a horizontal scroll bar
2  ecVertical        Object has a vertical scroll bar
3  ecBoth             Object has both, horizontal and vertical scroll bars