You must use this function instead of exec.library/GetMsg() to get messages from a window, if you are using gadtools gadgets. After you are done with reading the message, you have to call GT_ReplyIMsg().
INPUTS
intuiport
UserPort of the window
RESULT
A pointer to a message or NULL, if there was no message or the messages had only a meaning to gadtools.