Advertisement
Vanhapolle

Non working main

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