||Use this routine to get IntuiMessage events from your
window. It saves you the hassle of writing a wait
loop with WaitPort and GetMsg in it. It gets annoying
when you find yourself writing the sasne five or so
lines of code at the head of every window event
handler. This saves you from that minor frustration.
||Sometimes, you may be looking for only specific
events and are happy to throw away other types that
you normally receive. Give this routine your window
and the IDCMP types you want and it will return with
a message of one of those types, having replied to
all other events.
||This takes care of mouse ahead. Call it and it
empties the event queue. Sometimes, there may be one
particular kind of event you don't want to ignore. If
so, use GetSelectIntuiMessage.
||The easiest and cleanest way to work with Intuition
is to spin off a task for each window. However, when
it comes time to close down your program, you need to
tell each of these windows (and their tasks) to close
down. This routine will simply send a CLOSEWINDOW
IntuiMessage event to the specified window.