2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
9 #include "gadtools_intern.h"
11 /*********************************************************************
14 #include <proto/gadtools.h>
15 #include <exec/ports.h>
16 #include <intuition/intuition.h>
18 AROS_LH1(struct IntuiMessage
*, GT_GetIMsg
,
21 AROS_LHA(struct MsgPort
*, intuiport
, A0
),
24 struct Library
*, GadToolsBase
, 12, GadTools
)
27 You must use this function instead of exec.library/GetMsg() to get
28 messages from a window, if you are using gadtools gadgets. After you
29 are done with reading the message, you have to call GT_ReplyIMsg().
32 intuiport - UserPort of the window
35 A pointer to a message or NULL, if there was no message or the messages
36 had only a meaning to gadtools.
45 GT_ReplyIMsg(), exec.library/GetMsg()
51 ***************************************************************************/
55 struct IntuiMessage
*imsg
, *gtmsg
;
57 while ((imsg
= (struct IntuiMessage
*)GetMsg(intuiport
)))
59 if ((gtmsg
= GT_FilterIMsg(imsg
)))
67 /* msg was for gadtools only */
68 ReplyMsg(&imsg
->ExecMessage
);