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

The following table shows the scroll bar messages, with a description of the purpose of each.

Programming element Description

SBM_GETPOS

This message is sent by an application to retrieve the current position of the scroll box of a scroll bar control.

SBM_GETRANGE

This message is sent by an application to a scroll bar control to retrieve the minimum and maximum position values for the control.

SBM_GETSCROLLINFO

This message is sent by an application to retrieve the parameters of a scroll bar.

SBM_SETPOS

This message is sent by an application to a scroll bar control to set the position of the scroll box (thumb) and, if requested, redraw the scroll bar to reflect the new position of the scroll box.

SBM_SETRANGE

This message is sent by an application to a scroll bar control to set the minimum and maximum position values for the control.

SBM_SETRANGEREDRAW

This message is sent by an application to a scroll bar control to set the minimum and maximum position values and to redraw the control.

SBM_SETSCROLLINFO

This message is sent by an application to set the parameters of a scroll bar.

WM_CTLCOLORSCROLLBAR

This message is sent to the parent window of a scroll bar control when the control is about to be drawn.

WM_HSCROLL

This message is sent to a window when a scroll event occurs in the window's standard horizontal scroll bar.

WM_VSCROLL

This message is sent to a window when a scroll event occurs in the window's standard vertical scroll bar.

See Also