wxDropFilesEvent

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

wxEvent
wxObject

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.

See also

Event handling overview



wxDropFilesEvent::wxDropFilesEvent



wxDropFilesEvent(WXTYPE id = 0, int noFiles = 0, wxString* files = NULL)

Constructor.



wxDropFilesEvent::m_files

wxString* m_files

An array of filenames.



wxDropFilesEvent::m_noFiles

int m_noFiles

The number of files dropped.



wxDropFilesEvent::m_pos

wxPoint m_pos

The point at which the drop took place.



wxDropFilesEvent::GetFiles

wxString* GetFiles(void) const

Returns an array of filenames.



wxDropFilesEvent::GetNumberOfFiles

int GetNumberOfFiles(void) const

Returns the number of files dropped.



wxDropFilesEvent::GetPosition

wxPoint GetPosition(void) const

Returns the position at which the files were dropped.

Returns an array of filenames.

ymasuda 平成17年11月19日