Defines 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 id, x, y, width, height [, style [, extended-style]]
Zero or a combination of the following styles: WS_TABSTOP, WS_GROUP, and WS_DISABLED.
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 about the general syntax of a control statement, see Common Control Parameters. Note that you cannot specify text for this control.
The following example demonstrates the use of the SCROLLBAR statement:
#define IDC_SCROLLBARV 1010 SCROLLBAR IDC_SCROLLBARV, 7, 55, 187, 44, SBS_VERT
Build date: 11/16/2013