Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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 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.

Copy Code
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 SCROLLBARstatement.

Copy Code
SCROLLBAR 999, 25, 30, 10, 100