Private Const SB_VERT = 1
Private Declare Function GetScrollPos _
Lib "user32" ( _
ByVal hwnd As Long, _
ByVal nBar As Long _
) As Long
Private Declare Function SetScrollPos _
Lib "user32" ( _
ByVal hwnd As Long, _
ByVal nBar As Long, _
ByVal nPos As Long, _
ByVal bRedraw As Long _
) As Long
Private Sub List1_Click()
List1.ToolTipText = List1.Text
List2.ListIndex = List1.ListIndex
List3.ListIndex = List1.ListIndex
Position_scr = GetScrollPos(List1.hwnd, SB_VERT)
pos2 = SetScrollPos(List2.hwnd, SB_VERT, Position_scr, True)
'MsgBox (Position_scr & " " & pos2)
End Sub
Сейчас этот форум просматривают: Yandex-бот и гости: 64