Private Sub ListView_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Long, ByVal y As Long)
With ListView
If Button = 0 Then
If (x < 0) Or (y < 0) Or (x > .Width) Or (y > .Height) Then
Set .DropHighlight = Nothing
ListView.Visible = False
ShowEffect lvMenuBtn1, 0
ReleaseCapture
Else
If Not ListView.HitTest(x, y) Is Nothing Then
If Not ListView.DropHighlight Is ListView.HitTest(x, y) Then Set ListView.DropHighlight = ListView.HitTest(x, y)
Else
Set ListView.DropHighlight = Nothing
End If
SetCapture .hwnd
End If
End If
End With
End Sub作者: mrl 时间: 2005-4-16 01:42
顶上来,或者有其他方法吗?作者: test2000 时间: 2005-4-16 19:46
ShowEffect 代码没贴上?作者: mrl 时间: 2005-4-18 21:49