View Single Post
Old 23 May 2020, 12:47   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,032
I don't know this book and you didn't post any code, but I can tell you the typical message loop for a window looks like this:

Code:
struct IntuiMessage *imsg;

while ((imsg = (struct IntuiMessage *) GetMsg (window->UserPort)))
{
	switch (imsg->Class)
	{
	case IDCMP_CLOSEWINDOW:
		finish = TRUE;
		break;
	}

	ReplyMsg ((struct Message *) imsg);
}
thomas is offline  
 
Page generated in 0.04278 seconds with 11 queries