LVM_SCROLLLVM_SCROLL*
*Contents  *Index  *Topic Contents
*Previous Topic: LVM_REDRAWITEMS
*Next Topic: LVM_SETBKCOLOR

LVM_SCROLL


LVM_SCROLL 
    wParam = (int) dx;
    lParam = (int) dy;

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

dx
Integer value that specifies the amount of horizontal scrolling in pixels. If the list view control is in list view, this value specifies the number of columns to scroll.
dy
Integer value that specifies the amount of vertical scrolling in pixels.

When the list view control is in report view, the control can only be scrolled vertically in whole line increments. Therefore, the dy 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 dy, the list will be scrolled by 16 pixels (1 line). If 7 is passed for dy, the list will be scrolled 0 pixels (0 lines).


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.