PGM_SETSCROLLINFO message

[Intended for internal use; not recommended for use in applications. This message may not be supported in future versions of Windows.]

Sets the scrolling parameters of the pager control, including the timeout value, the lines per timeout, and the pixels per line. You can send this message explicitly or by using the Pager_SetScrollInfo macro.

Parameters

wParam

A UINT that specifies the timeout value for the scroll, in milliseconds.

lParam

The LOWORD is a UINT that specifies the number of lines to scroll per timeout. The HIWORD is a UINT that specifies the number of pixels per line.

Return value

The return value is not used.

Security Considerations

Using this message might compromise the security of your program.

Remarks

The wParam timeout value controls the rate at which the pager control generates scrolling events when the control has captured the mouse input and the left mouse button is pressed. Smaller values result in faster scrolling; larger values result in slower scrolling. The default value is one-eighth of the double-click time. For more information, see GetDoubleClickTime.

By default, with each scrolling event the pager control scrolls an amount equal to the entire width or height of the control, depending on whether the pager control has a horizontal or vertical orientation. The values in lParam are used to override the default scrolling amount. If nonzero values are provided, the scrolling amount is the product of the two values (LOWORD(lParam) * HIWORD(lParam)).

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h

See also

Pager_SetScrollInfo