contents up previous next

wxfiledroptarget

this is a drop target which accepts files (dragged from file manager or explorer).

derived from

wxdroptarget

include files

<wx/dnd.h>

see also

drag and drop overview, wxdropsource, wxdroptarget, wxtextdroptarget

members

wxfiledroptarget::wxfiledroptarget
wxfiledroptarget::ondrop
wxfiledroptarget::ondropfiles


wxfiledroptarget::wxfiledroptarget

wxfiledroptarget()

constructor.


wxfiledroptarget::ondrop

virtual bool ondrop(long x, long y, const void *data, size_t size)

see wxdroptarget::ondrop. this function is implemented appropriately for files, and calls wxfiledroptarget::ondropfiles.


wxfiledroptarget::ondropfiles

virtual bool ondropfiles(wxcoord x, wxcoord y, const wxarraystring& filenames)

override this function to receive dropped files.

parameters

x

y

filenames

return value

return true to accept the data, false to veto the operation.