#include <wx/dnd.h>

This is a drop target which accepts files (dragged from File Manager or Explorer).
Public Member Functions | |
| wxFileDropTarget () | |
| Constructor. | |
| virtual bool | OnDrop (wxCoord x, wxCoord y) |
| See wxDropTarget::OnDrop(). | |
| virtual bool | OnDropFiles (wxCoord x, wxCoord y, const wxArrayString &filenames)=0 |
| Override this function to receive dropped files. | |
| wxFileDropTarget::wxFileDropTarget | ( | ) |
Constructor.
This function is implemented appropriately for files, and calls OnDropFiles().
Reimplemented from wxDropTarget.
| virtual bool wxFileDropTarget::OnDropFiles | ( | wxCoord | x, | |
| wxCoord | y, | |||
| const wxArrayString & | filenames | |||
| ) | [pure virtual] |
Override this function to receive dropped files.
| x | The x coordinate of the mouse. | |
| y | The y coordinate of the mouse. | |
| filenames | An array of filenames. |
Return true to accept the data, or false to veto the operation.
|
[ top ] |