Upravit

Sdílet prostřednictvím


TVM_SETAUTOSCROLLINFO message

Sets information used to determine auto-scroll characteristics. You can send this message explicitly or by using the TreeView_SetAutoScrollInfo macro.

Parameters

wParam [in]

Specifies pixels per second. The offset to scroll is divided by the wParam to determine the total duration of the auto-scroll.

lParam [in]

Specifies the redraw time interval. Redraw at every elasped interval, until the item is scrolled into view. Given wParam, the location of the item is calculated and a repaint occurs. Set this value to create smooth scrolling.

Return value

Returns TRUE.

Remarks

Autoscroll information is used to scroll a nonvisible item into view. The control must have the TVS_EX_AUTOHSCROLL extended style. For information on extended styles, see Tree-View Control Extended Styles.

Requirements

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