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.
| |
| Origin |
A point representing the location of the mouse in canvas coordinates at the time this drag event was generated.
|
| Name | Description | |
|---|---|---|
| FileName |
Return the name of a specified file in the drag-and-drop load that generated this drag event.
|
| 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(). |