Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WaitPort(WIN_PTR->UserPort);
- while(!DONE)
- {
- edwsig=(1L<<WIN_PTR->UserPort->mp_SigBit);
- sigs=SetSignal(0L,0L);
- if (sigs & edwsig)
- {
- while (NULL != (edw_msg = (struct IntuiMessage *)GetMsg(WIN_PTR->UserPort)))
- {
- edwmsgport=WaitPort (WIN_PTR->UserPort);
- switch (edw_msg->Class)
- {
- case IDCMP_CLOSEWINDOW:
- printf("Close Window Press");
- DONE=TRUE;
- break;
- /* case IDCMP_ACTIVEWINDOW:
- case IDCMP_MOUSEBUTTONS:
- DisplayBeep(SCR_PTR);
- break; */
- }
- ReplyMsg((struct Message*)edw_msg);
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement