Expand Minimize

LVM_SCROLL message

Scrolls the content of a list-view control. You can send this message explicitly or by using the ListView_Scroll macro.

Parameters

wParam

Value of type int that specifies the amount of horizontal scrolling, in pixels, relative to the current position of the list view content. If the list-view control is in list view, this value is rounded up to the nearest number of pixels that form a whole column.

lParam

Value of type int that specifies the amount of vertical scrolling, in pixels, relative to the current position of the list view content.

Return value

Returns TRUE if successful; otherwise, FALSE.

Remarks

When the list-view control is in report view, the control can only be scrolled vertically in whole line increments. Therefore, the lParam parameter will be rounded to the nearest number of pixels that form a whole line increment. For example, if the height of a line is 16 pixels and 8 is passed for lParam, the list will be scrolled by 16 pixels (1 line). If 7 is passed for lParam, the list will be scrolled 0 pixels (0 lines).

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft