Type | Description | |||
X as OLE_XPOS_PIXELS | A single that specifies the current X location of the mouse pointer. The x values is always expressed in client 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 client coordinates. | |||
String | A String expression that specifies the shortcut from the point. |
The following VB sample displays the shortcut from the cursor:
Private Sub ExplorerTree1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Debug.Print ExplorerTree1.ShortcutFromPoint(-1, -1) End Sub
The following VB.NET sample displays the shortcut from the cursor:
Private Sub AxExplorerTree1_MouseMoveEvent(ByVal sender As Object, ByVal e As AxEXPLORERTREELib._IExplorerTreeEvents_MouseMoveEvent) Handles AxExplorerTree1.MouseMoveEvent Debug.Print(AxExplorerTree1.get_ShortcutFromPoint(-1, -1)) End Sub
The following C# sample displays the shortcut from the cursor:
private void axExplorerTree1_MouseMoveEvent(object sender, AxEXPLORERTREELib._IExplorerTreeEvents_MouseMoveEvent e) { System.Diagnostics.Debug.WriteLine(axExplorerTree1.get_ShortcutFromPoint(-1, -1)); }
The following C++ sample displays the shortcut from the cursor:
void OnMouseMoveExplorertree1(short Button, short Shift, long X, long Y) { OutputDebugString( m_explorerTree.GetShortcutFromPoint( -1, -1 ) ); }
The following VFP sample displays the shortcut from the cursor:
*** ActiveX Control Event *** LPARAMETERS button, shift, x, y with thisform.ExplorerTree1 wait window nowait .ShortcutFromPoint(-1,-1) endwith