2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
6 #include <proto/intuition.h>
7 #include <intuition/classusr.h>
8 #include <clib/alib_protos.h>
9 #include <proto/muimaster.h>
11 #include "muimaster_intern.h"
14 /*****************************************************************************
17 AROS_LH2(VOID
, MUI_RejectIDCMP
,
20 AROS_LHA(Object
*, obj
, A0
),
21 AROS_LHA(ULONG
, flags
, D0
),
24 struct Library
*, MUIMasterBase
, 16, MUIMaster
)
37 The function itself is a bug ;-) Remove it!
43 *****************************************************************************/
47 if (muiRenderInfo(obj
) && (_flags(obj
) & MADF_SETUP
) && _win(obj
))
49 if (muiAreaData(obj
)->mad_hiehn
.ehn_Events
)
51 DoMethod(_win(obj
), MUIM_Window_RemEventHandler
,
52 (IPTR
)&muiAreaData(obj
)->mad_hiehn
);
54 muiAreaData(obj
)->mad_hiehn
.ehn_Events
&= ~flags
;
55 if (muiAreaData(obj
)->mad_hiehn
.ehn_Events
)
57 DoMethod(_win(obj
), MUIM_Window_AddEventHandler
,
58 (IPTR
)&muiAreaData(obj
)->mad_hiehn
);
63 muiAreaData(obj
)->mad_hiehn
.ehn_Events
&= ~flags
;
68 } /* MUIA_RejectIDCMP */