2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Remove a dropzone from a AppWindow's list of AppWindowDropZones.
9 #include <exec/types.h>
10 #include <exec/ports.h>
11 #include <utility/tagitem.h>
12 #include <intuition/intuition.h>
14 #include "workbench_intern.h"
15 #include <workbench/workbench.h>
17 /*****************************************************************************
21 #include <proto/workbench.h>
23 AROS_LH2(BOOL
, RemoveAppWindowDropZone
,
26 AROS_LHA(struct AppWindow
* , aw
, A0
),
27 AROS_LHA(struct AppWindowDropZone
*, dropZone
, A1
),
30 struct WorkbenchBase
*, WorkbenchBase
, 20, Workbench
)
34 Try to remove a drop zone from an AppWindow.
38 appWindow -- pointer to the AppWindow (as returned by AddAppWindow()) to
39 try to remove the drop zone from; a value of NULL will
40 result in no operation
41 dropZone -- pointer to an AppWindowDropZone (as returned by
42 AddAppWindowDropZone()); a value of NULL will result in
47 TRUE if the drop zone could be removed, FALSE otherwise. In case of
48 failure, the reason may be obtained from dos.library/IoErr(). This
49 function may fail if the specified drop zone is not registered with
50 the supplied AppWindow.
54 You must check for drop zone messages for zones that you just removed as
55 there might have been messages sent between the last time you checked and
56 the call to this function.
66 ******************************************************************************/
70 struct AppWindowDropZone
*dz
;
72 BOOL found
= FALSE
; /* Is the drop zone 'dropZone' added to the
75 if ((aw
== NULL
) || (dropZone
== NULL
))
77 SetIoErr(ERROR_REQUIRED_ARG_MISSING
);
83 ForeachNode(&aw
->aw_DropZones
, dz
)
95 SetIoErr(ERROR_OBJECT_NOT_FOUND
);
100 Remove((struct Node
*)dropZone
);
105 /* NotifyWorkbench(WBNOTIFY_Delete, WBNOTIFY_DropZone, WorkbenchBase); */
110 } /* RemoveAppWindowDropZone */