wxfiledroptargetthis is a drop target which accepts files (dragged from file manager or explorer). derived from include files <wx/dnd.h> see also drag and drop overview, wxdropsource, wxdroptarget, wxtextdroptarget members
wxfiledroptarget::wxfiledroptarget
wxfiledroptarget::wxfiledroptargetwxfiledroptarget() constructor.
wxfiledroptarget::ondropvirtual 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::ondropfilesvirtual 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.
|