Path: utzoo!mnetor!uunet!wucs1!wuphys!lel From: lel@wuphys.UUCP (Lyle E. Levine) Newsgroups: comp.sys.amiga Subject: Re: Finding the Active Window Message-ID: <513@wuphys.UUCP> Date: 4 Mar 88 06:52:12 GMT References: <1086@ur-tut.UUCP> Reply-To: lel@wuphys.UUCP (Lyle E. Levine) Organization: Physics Dept., Washington U. in St. Louis Lines: 39 Keywords: Intuition, Screen, Window In article <1086@ur-tut.UUCP> jmpi@ur-tut.UUCP (Spike) writes: >active? Can I get all the windows on a screen to send my program ACTIVEWINDOW >messages? Or should I just scan the window list looking for the one with the There can only be one active window on the system at a time. The easiest way to find it is to look at IntuitionBase -> ActiveWindow. I think it goes like this: lockbase = LockIBase(0); ActWind = IntuitionBase -> ActiveWindow; UnlockIBase(lockbase); Oh yes, use ULONG lockbase; struct Window *ActWind; Make sure to open the Intuition library first. Hope this helps! ========================================================================== PS I have been reading this news group for almost 2 years now but was unable to post to it. As of last week, this has hopefully changed. Free At Last! I would appreciate a couple replies to confirm this however... Thanks in Advance... ========== IBM is a Division of Sirius Cybernetics Corporation: "their fundamental design flaws are completely hidden by their superficial design flaws." - "So Long And Thanks For All The Fish" Lyle Levine: Paths -> ihnp4!wuphys!lel uunet!wucs!wuphys!lel