Advertisement
Vanhapolle

Still sameproblem

Dec 29th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. while(DONE)
  2. {
  3. edwsig=(1L<<WIN_PTR->UserPort->mp_SigBit);
  4.  
  5. sigs=SetSignal(0L,0L);
  6. if (sigs & edwsig)
  7. {
  8. while (NULL != (edw_msg = (struct IntuiMessage *)GetMsg(WIN_PTR->UserPort)))
  9. {
  10. edwmsgport=WaitPort (WIN_PTR->UserPort);
  11.  
  12. switch (edw_msg->Class)
  13.     {
  14.         case IDCMP_CLOSEWINDOW:
  15.         printf("Close Window Press");
  16.         DONE=TRUE;
  17.         break;
  18.         case IDCMP_ACTIVEWINDOW:
  19.         case IDCMP_MOUSEBUTTONS:
  20.         DisplayBeep(SCR_PTR);
  21.         break;
  22.     }
  23.  
  24. ReplyMsg((struct Message*)edw_msg);
  25. };
  26. };
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement