Type | Description | |||
X as OLE_XPOS_PIXELS | A Long expression that specifies the x-cursor position. | |||
Y as OLE_YPOS_PIXELS | A Long expression that specifies the y-cursor position. | |||
HitTest | A HitTest object that holds information about the Element from the specified position. |
The following VB sample determines if the cursor hovers the element's expand/collapse glyphs:
Private Sub SwimLane1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Dim h As HitTest Set h = SwimLane1.HitTestFromPoint(-1, -1) If Not h Is Nothing Then If (h.HitTestCode And exHitTestMask) = exHitTestGlyph Then Debug.Print "Expand/Collase Glyph of " & h.Element.ID End If End If End Sub