This class is used for drop files events, that is, when files have been dropped onto the window. This functionality is currently only available under Windows. The window must have previously been enabled for dropping by calling wxWindow::DragAcceptFiles.
Important note: this is a separate implementation to the more general drag and drop implementation documented here. It uses the older, Windows message-based approach of dropping files.
Derived from
Include files
<wx/event.h>
Event table macros
To process a drop files event, use these event handler macros to direct input to a member function that takes a wxDropFilesEvent argument.
EVT_DROP_FILES(func) | Process a wxEVT_DROP_FILES event. |
Members
wxDropFilesEvent::wxDropFilesEvent
wxDropFilesEvent::m_files
wxDropFilesEvent::m_noFiles
wxDropFilesEvent::m_pos
wxDropFilesEvent::GetFiles
wxDropFilesEvent::GetNumberOfFiles
wxDropFilesEvent::GetPosition
wxDropFilesEvent(WXTYPE id = 0, int noFiles = 0, wxString* files = NULL)
Constructor.
wxString* m_files
An array of filenames.
int m_noFiles
The number of files dropped.
wxPoint m_pos
The point at which the drop took place.
wxString* GetFiles() const
Returns an array of filenames.
int GetNumberOfFiles() const
Returns the number of files dropped.
wxPoint GetPosition() const
Returns the position at which the files were dropped.
Returns an array of filenames.