home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 4 / AACD04.ISO / AACD / Programming / powerd / lib / PowerD / WaitIMessage.d < prev    next >
Encoding:
Text File  |  1999-09-21  |  381 b   |  19 lines

  1. OPT    OBJECT,NOSTD
  2.  
  3. MODULE    'intuition/intuition'
  4.  
  5. PROC WaitIMessage(w:PTR TO Window)(LONG,LONG,LONG,LONG)
  6.     DEF    port,msg:PTR TO IntuiMessage,class,code,qual,iaddr
  7.     port:=w.UserPort
  8.     IF msg:=GetMsg(port)
  9.         REPEAT
  10.             WaitPort(port)
  11.         UNTIL msg:=GetMsg(port)
  12.     ENDIF
  13.     class:=msg.Class
  14.     code:=msg.Code
  15.     qual:=msg.Qualifier
  16.     iaddr:=msg.IAddress
  17.     ReplyMsg(msg)
  18. ENDPROC class,code,qual,iaddr
  19.