Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU.UUCP Newsgroups: comp.sys.amiga Subject: Re: How do you find out if your window is active *now*? Message-ID: <8702252244.AA19996@cory.Berkeley.EDU> Date: Wed, 25-Feb-87 17:44:24 EST Article-I.D.: cory.8702252244.AA19996 Posted: Wed Feb 25 17:44:24 1987 Date-Received: Fri, 27-Feb-87 21:38:51 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 12 Simply look at the Flags variable in the Window structure: if (Win->Flags & WINDOWACTIVE) blah blah blah But since the user can activate/deactivate a window at any time, I don't know what use it will be. If you leave the Window's User Port alone, then Intuition will clear any pending messages when you call CloseWindow(). -Matt