SetScrollBars method
Available for Window, MDIWindow, DialogBox, Edit, Picture and RichEdit objects.
Syntax
Invoke SetScrollBars, hWnd, lScrollBars
Function
Sets the ScrollBars property for an object.
Parameters
hWnd
Handle to the object.
lScrollBars
A DD value specifying the new scroll bar options for the object. It can be one of the following values:
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
Return value
Eax returns TRUE if succesful, or FALSE if not.