File: wx91.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 (79 lines) | stat: -rw-r--r-- 3,401 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
<HTML>
<head><title>wxFileDropTarget</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxfiledroptarget"></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="wx90.htm#wxfiledialog"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx92.htm#wxfilehistory"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxFileDropTarget</H2>
<P>
 A drop target which accepts files (dragged from File Manager or Explorer).<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx82.htm#wxdroptarget">wxDropTarget</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/dnd.h&gt;<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx312.htm#wxdndoverview">Drag and drop overview</A>, <A HREF="wx81.htm#wxdropsource">wxDropSource</A>, 
<A HREF="wx82.htm#wxdroptarget">wxDropTarget</A>, <A HREF="wx243.htm#wxtextdroptarget">wxTextDropTarget</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxfiledroptargetwxfiledroptarget">wxFileDropTarget::wxFileDropTarget</A><BR>
<A HREF="#wxfiledroptargetgetformatcount">wxFileDropTarget::GetFormatCount</A><BR>
<A HREF="#wxfiledroptargetgetformat">wxFileDropTarget::GetFormat</A><BR>
<A HREF="#wxfiledroptargetondrop">wxFileDropTarget::OnDrop</A><BR>
<A HREF="#wxfiledroptargetondropfiles">wxFileDropTarget::OnDropFiles</A><BR>
<P>

<HR>
<A NAME="wxfiledroptargetwxfiledroptarget"></A>
<H3>wxFileDropTarget::wxFileDropTarget</H3>
<P>
<B></B> <B>wxFileDropTarget</B>()<P>
Constructor.<P>

<HR>
<A NAME="wxfiledroptargetgetformatcount"></A>
<H3>wxFileDropTarget::GetFormatCount</H3>
<P>
<B>virtual size_t</B> <B>GetFormatCount</B>()<P>
See <A HREF="wx82.htm#wxdroptargetgetformatcount">wxDropTarget::GetFormatCount</A>. This function is implemented
appropriately for files.<P>

<HR>
<A NAME="wxfiledroptargetgetformat"></A>
<H3>wxFileDropTarget::GetFormat</H3>
<P>
<B>virtual wxDataFormat</B> <B>GetFormat</B>(<B>size_t </B><I>n</I>) <B>const</B><P>
See <A HREF="wx82.htm#wxdroptargetgetformat">wxDropTarget::GetFormat</A>. This function is implemented
appropriately for files.<P>

<HR>
<A NAME="wxfiledroptargetondrop"></A>
<H3>wxFileDropTarget::OnDrop</H3>
<P>
<B>virtual bool</B> <B>OnDrop</B>(<B>long </B><I>x</I>, <B>long </B><I>y</I>, <B>const void </B><I>*data</I>, <B>size_t </B><I>size</I>)<P>
See <A HREF="wx82.htm#wxdroptargetondrop">wxDropTarget::OnDrop</A>. This function is implemented
appropriately for files, and calls <A HREF="wx91.htm#wxfiledroptargetondropfiles">wxFileDropTarget::OnDropFiles</A>.<P>

<HR>
<A NAME="wxfiledroptargetondropfiles"></A>
<H3>wxFileDropTarget::OnDropFiles</H3>
<P>
<B>virtual bool</B> <B>OnDropFiles</B>(<B>long </B><I>x</I>, <B>long </B><I>y</I>, <B>size_t </B><I>nFiles</I>, <B>const char * const</B><I>files[]</I>)<P>
Override this function to receive dropped files.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>x</I><UL><UL>
The x coordinate of the mouse.</UL></UL>
<P>
<I>y</I><UL><UL>
The y coordinate of the mouse.</UL></UL>
<P>
<I>nFiles</I><UL><UL>
The number of files being dropped.</UL></UL>
<P>
<I>files</I><UL><UL>
An array of filenames.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">Return value</FONT></B><P>
Return TRUE to accept the data, FALSE to veto the operation.<P>

</BODY></HTML>