Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _ hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _ lParam As Any) As Long Const LVM_FIRST = &H1000 Const LVM_SCROLL = (LVM_FIRST + 20)
Function ListViewScroll(lvw As ListView, ByVal dx As Long, ByVal dy As Long) SendMessage lvw.hwnd, LVM_SCROLL, dx, ByVal dy End Function |