event MouseMove (Button as Integer, Shift as Integer, X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS)
Fired when the user move the mouse over the ExFolderView control.

 TypeDescription 
   Button as Integer An integer that corresponds to the state of the mouse buttons in which a bit is set if the button is down  
   Shift as Integer An integer that corresponds to the state of the SHIFT, CTRL, and ALT keys.  
   X as OLE_XPOS_PIXELS A single that specifies the current X location of the mouse pointer. The x values is always expressed in container coordinates.  
   Y as OLE_YPOS_PIXELS A single that specifies the current Y location of the mouse pointer. The y values is always expressed in container coordinates.  
The MouseMove event is generated continually as the mouse pointer moves across objects. Unless another object has captured the mouse, an object recognizes a MouseMove event whenever the mouse position is within its borders. Use the FolderFromPoint property to retrieve the folder from the cursor.

Below example displays the folder from the cursor:

Private Sub ExFolderView1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
    With ExFolderView1
        Dim f As EXFOLDERVIEWLibCtl.ExShellFolder
        Set f = .FolderFromPoint(-1, -1)
        If Not (f Is Nothing) Then
            Debug.Print f.DisplayName
        End If
    End With
End Sub

 


Send comments on this topic.
© 1999-2006 Exontrol Inc, Software. All rights reserved.