#include </home/work/projects/wx/2.9/wx/interface/wx/event.h>

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 in the Drag and Drop Overview. It uses the older, Windows message-based approach of dropping files.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
wxEVT_DROP_FILES event.
Public Member Functions | |
| wxDropFilesEvent (wxEventType id=0, int noFiles=0, wxString *files=NULL) | |
| Constructor. | |
| 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. | |
| wxDropFilesEvent::wxDropFilesEvent | ( | wxEventType | id = 0, |
|
| int | noFiles = 0, |
|||
| wxString * | files = NULL | |||
| ) |
Constructor.
| wxString* wxDropFilesEvent::GetFiles | ( | ) | const |
Returns an array of filenames.
| int wxDropFilesEvent::GetNumberOfFiles | ( | ) | const |
Returns the number of files dropped.
| wxPoint wxDropFilesEvent::GetPosition | ( | ) | const |
Returns the position at which the files were dropped.
Returns an array of filenames.
|
[ top ] |