1 \section{\class{wxDropFilesEvent
}}\label{wxdropfilesevent
}
3 This class is used for drop files events, that is, when files have been dropped
4 onto the window. This functionality is currently only available under Windows.
5 The window must have previously been enabled for dropping by calling
6 \helpref{wxWindow::DragAcceptFiles
}{wxwindowdragacceptfiles
}.
8 Important note: this is a separate implementation to the more general
9 drag and drop implementation documented
\helpref{here
}{wxdndoverview
}. It uses the
10 older, Windows message-based approach of dropping files.
12 \wxheading{Derived from
}
14 \helpref{wxEvent
}{wxevent
}\\
15 \helpref{wxObject
}{wxobject
}
17 \wxheading{Include files
}
23 \helpref{wxCore
}{librarieslist
}
25 \wxheading{Event table macros
}
27 To process a drop files event, use these event handler macros to direct input to a member
28 function that takes a wxDropFilesEvent argument.
31 \begin{twocollist
}\itemsep=
0pt
32 \twocolitem{{\bf EVT
\_DROP\_FILES(func)
}}{Process a wxEVT
\_DROP\_FILES event.
}
37 \helpref{Event handling overview
}{eventhandlingoverview
}
39 \latexignore{\rtfignore{\wxheading{Members
}}}
41 \membersection{wxDropFilesEvent::wxDropFilesEvent
}\label{wxdropfileseventctor
}
43 \func{}{wxDropFilesEvent
}{\param{WXTYPE
}{id =
0},
\param{int
}{noFiles =
0},
\rtfsp
44 \param{wxString*
}{files = NULL
}}
48 \membersection{wxDropFilesEvent::m
\_files}\label{wxdropfileseventmfiles
}
50 \member{wxString*
}{m
\_files}
52 An array of filenames.
54 \membersection{wxDropFilesEvent::m
\_noFiles}\label{wxdropfileseventmnofiles
}
56 \member{int
}{m
\_noFiles}
58 The number of files dropped.
60 \membersection{wxDropFilesEvent::m
\_pos}\label{wxdropfileseventmpos
}
62 \member{wxPoint
}{m
\_pos}
64 The point at which the drop took place.
66 \membersection{wxDropFilesEvent::GetFiles
}\label{wxdropfileseventgetfiles
}
68 \constfunc{wxString*
}{GetFiles
}{\void}
70 Returns an array of filenames.
72 \membersection{wxDropFilesEvent::GetNumberOfFiles
}\label{wxdropfileseventgetnumberoffiles
}
74 \constfunc{int
}{GetNumberOfFiles
}{\void}
76 Returns the number of files dropped.
78 \membersection{wxDropFilesEvent::GetPosition
}\label{wxdropfileseventgetposition
}
80 \constfunc{wxPoint
}{GetPosition
}{\void}
82 Returns the position at which the files were dropped.
84 Returns an array of filenames.