property ToolBarCRD.ItemFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Long
Retrieves the index of the item from the point.

TypeDescription
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.
Long A Long expression that specifies the index of the item from the cursor or 0 if not found.
Use the ItemFromPoint property to get the item from cursor. 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. The MouseIn event occurs when the mouse enters the item. The MouseOut event occurs when the mouse exits the item. Use the Background(exToolBarButtonHotBackColor) property to specify the visual appearance of the item when the cursor hovers it.