This resource-definition statement creates a scroll bar control. The control is a rectangle that contains a scroll box and has direction arrows at both ends. The scroll bar control sends a notification message to its parent whenever the user selects the control. The parent is responsible for updating the scroll-box position. Scroll bar controls can be positioned anywhere in a window and used whenever needed to provide scrolling input.
Syntax
SCROLLBAR text, id, x, y, width, height [[, style [[, extended-style]]]]
Parameters
style
Specifies styles for the scroll bar, which can be a combination—or none—of the SCROLLBAR class styles and the following styles: WS_TABSTOP, WS_GROUP, and WS_DISABLED.
If you do not specify a style, the default style is SBS_HORZ.
Example
The following code example shows how to use the SCROLLBAR statement.
SCROLLBAR 999, 25, 30, 10, 100