File: wx80.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (103 lines) | stat: -rw-r--r-- 3,361 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<HTML>
<head><title>wxDropFilesEvent</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxdropfilesevent"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx79.htm#wxdocument"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx81.htm#wxdropsource"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxDropFilesEvent</H2>
<P>
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.<P>
Important note: this is a separate implementation to the more general
drag and drop implementation documented <A HREF="wx312.htm#wxdndoverview">here</A>. It uses the
older, Windows message-based approach of dropping files.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx84.htm#wxevent">wxEvent</A><BR>

<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/event.h&gt;<P>
<B><FONT COLOR="#FF0000">Event table macros</FONT></B><P>
To process a drop files event, use these event handler macros to direct input to a member
function that takes a wxDropFilesEvent argument.<P>


<TABLE>


<TR><TD VALIGN=TOP>
<B>EVT_DROP_FILES(func)</B>
</TD>

<TD VALIGN=TOP>
Process a wxEVT_DROP_FILES event.
</TD></TR>


</TABLE>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx260.htm#wxwindowondropfiles">wxWindow::OnDropFiles</A>, <A HREF="wx299.htm#eventhandlingoverview">Event handling overview</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#topic332">wxDropFilesEvent::wxDropFilesEvent</A><BR>
<A HREF="#topic333">wxDropFilesEvent::m_files</A><BR>
<A HREF="#topic334">wxDropFilesEvent::m_noFiles</A><BR>
<A HREF="#topic335">wxDropFilesEvent::m_pos</A><BR>
<A HREF="#wxdropfileseventgetfiles">wxDropFilesEvent::GetFiles</A><BR>
<A HREF="#wxdropfileseventgetnumberoffiles">wxDropFilesEvent::GetNumberOfFiles</A><BR>
<A HREF="#wxdropfileseventgetposition">wxDropFilesEvent::GetPosition</A><BR>
<P>

<HR>
<A NAME="topic332"></A>
<H3>wxDropFilesEvent::wxDropFilesEvent</H3>
<P>
<B></B> <B>wxDropFilesEvent</B>(<B>WXTYPE </B><I>id = 0</I>, <B>int </B><I>noFiles = 0</I>,
<B>wxString* </B><I>files = NULL</I>)<P>
Constructor.<P>

<HR>
<A NAME="topic333"></A>
<H3>wxDropFilesEvent::m_files</H3>
<P>
wxString* m_files<P>
An array of filenames.<P>

<HR>
<A NAME="topic334"></A>
<H3>wxDropFilesEvent::m_noFiles</H3>
<P>
int m_noFiles<P>
The number of files dropped.<P>

<HR>
<A NAME="topic335"></A>
<H3>wxDropFilesEvent::m_pos</H3>
<P>
wxPoint m_pos<P>
The point at which the drop took place.<P>

<HR>
<A NAME="wxdropfileseventgetfiles"></A>
<H3>wxDropFilesEvent::GetFiles</H3>
<P>
<B>wxString*</B> <B>GetFiles</B>() <B>const</B><P>
Returns an array of filenames.<P>

<HR>
<A NAME="wxdropfileseventgetnumberoffiles"></A>
<H3>wxDropFilesEvent::GetNumberOfFiles</H3>
<P>
<B>int</B> <B>GetNumberOfFiles</B>() <B>const</B><P>
Returns the number of files dropped.<P>

<HR>
<A NAME="wxdropfileseventgetposition"></A>
<H3>wxDropFilesEvent::GetPosition</H3>
<P>
<B>wxPoint</B> <B>GetPosition</B>() <B>const</B><P>
Returns the position at which the files were dropped.<P>
Returns an array of filenames.<P>


</BODY></HTML>