The SCROLLBAR 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 clicks the mouse in 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.
SCROLLBAR text, id, x, y, width, height [[, style [[, extended-style]]]]
In addition to these styles, the style parameter may contain a combination (or none) of the SCROLLBAR-class styles.
If you do not specify a style, the default style is SBS_HORZ.
For more information on the text, id, x, y, width, height, style, and extended-style parameters, see Common Control Parameters.
The following example demonstrates the use of the SCROLLBAR statement:
SCROLLBAR 999, 25, 30, 10, 100