|
|
|
|
|
Code des Test-Forms aus ControlSyncTest
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub List1_KeyDown(KeyCode As Integer, Shift As Integer)
PostMessage List2.hWnd, WM_KEYDOWN, KeyCode, 0&
End Sub
Private Sub List1_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
modSync.MouseDown List2.hWnd, Button, Shift, X, Y
End Sub
Private Sub List1_MouseMove(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
modSync.MouseMove List2.hWnd, Button, Shift, X, Y
End Sub
Private Sub List1_MouseUp(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
modSync.MouseUp List2.hWnd, Button, Shift, X, Y
End Sub
Private Sub List1_Scroll()
List2.TopIndex = List1.TopIndex
End Sub
Private Sub List2_MouseDown(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
List1.SetFocus
End Sub
Private Sub List2_MouseMove(Button As Integer, _
Shift As Integer, X As Single, Y As Single)
Debug.Print X, Y
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, _
Shift As Integer)
PostMessage Text2.hWnd, WM_KEYDOWN, KeyCode, 0&
End Sub
Private Sub Form_Load()
Dim i%
For i = 1 To 40
List1.AddItem "ListBox-Zeile " & i
List2.AddItem "ListBox-Zeile " & i
Next 'i
End Sub
|
|
|