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.
|