DragEvent Class |
Namespace: VO
The DragEvent type exposes the following members.
Name | Description | |
---|---|---|
Control |
A control object returning the control whenever a drop-and-drag event has occurred inside a control with WS_EX_ACCEPTFILES set. If WS_EX_ACCEPTFILES is TRUE, the control accepts files and triggers a call to its parent Drop() method.
| |
FileCount |
A numeric value representing the number of files in the drag-and-drop load that generated this drag event.
| |
Handle |
The pointer to the window where the event occurred
(Inherited from Event.) | |
Message |
A dword representing the Windows API message associated with the given event.
(Inherited from Event.) | |
Origin |
A point representing the location of the mouse in canvas coordinates at the time this drag event was generated.
| |
Window |
An object indicating the window or control in which the event occurred. This is helpful, for example, for distinguishing between similar menu events coming from the same context menu attached to different controls.
(Inherited from Event.) |
Name | Description | |
---|---|---|
FileName |
Return the name of a specified file in the drag-and-drop load that generated this drag event.
|
Name | Description | |
---|---|---|
hWnd | (Inherited from Event.) | |
lParam | (Inherited from Event.) | |
oWindow | (Inherited from Event.) | |
uMsg | (Inherited from Event.) | |
wParam | (Inherited from Event.) |
Tip |
---|
Drag events do not occur in the drag-and-drop server (the source of the files)—only in the drag-and-drop client (the target). When the drag enters the client area, the drag event goes to the DragDropClient:DragOver() method of the client. If the drag leaves the client without dropping its files, and the drag-and-drop client has returned TRUE to the DragOver() method, a generic event goes to DragDropClient:DragLeave(). It is then no longer relevant or correct for the application to query the event if it is leaving the client. If the user drops the files, the drag event goes to DragDropClient:Drop(). |