wxDropFilesEventThis 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.
Members
wxDropFilesEvent::wxDropFilesEvent
wxDropFilesEvent::wxDropFilesEventwxDropFilesEvent(WXTYPE id = 0, int noFiles = 0, wxString* files = NULL) Constructor.
wxDropFilesEvent::m_fileswxString* m_files An array of filenames.
wxDropFilesEvent::m_noFilesint m_noFiles The number of files dropped.
wxDropFilesEvent::m_poswxPoint m_pos The point at which the drop took place.
wxDropFilesEvent::GetFileswxString* GetFiles() const Returns an array of filenames.
wxDropFilesEvent::GetNumberOfFilesint GetNumberOfFiles() const Returns the number of files dropped.
wxDropFilesEvent::GetPositionwxPoint GetPosition() const Returns the position at which the files were dropped. Returns an array of filenames.
|