home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!psinntp!panix!rmah
- From: rmah@panix.com (Robert Mah)
- Subject: Re: How do I find a hole in the DeskTop?!
- Message-ID: <1992Dec28.024044.3652@panix.com>
- Date: Mon, 28 Dec 1992 02:40:44 GMT
- References: <yjc-251292012254@yjc-slip.dialin.cwru.edu>
- Organization: PANIX Public Access Unix, NYC
- Lines: 29
-
- In <yjc-251292012254@yjc-slip.dialin.cwru.edu> yjc@po.cwru.edu (Jerome 'TofuSoft' Chan) writes:
-
- >How do I find a clear section of the desktop which is NOT covered by
- >Windows?! I've want my clock application window to slowly creep to the
- >nearest uncovered region on the desktop.
-
- GREAT IDEA. I'm gonna use it too, if you don't mind.
-
- Anyway, you just gotta look at the structure regions of all the windows that
- are visible. Each application keeps a list of windows starting at the global
- WindowList. The only problem is to get WindowList for each application.
- One possible way is to patch InitWindows and grab that app's WindowList
- global. Don't forget to patch ExitToShell to catch the application's quitting.
-
- Another option is to track all window creation, deletion, hiding and showing.
-
- On second thought, does GrayRgn hold the VISIBLE desktop or the whole thing?
- Not sure on this...but a little experimentation should clear it up.
-
- Cheers,
- Rob
-
-
-
- --
- [--------------------------------------------------]
- [ Robert S. Mah | "Every day an adventure, ]
- [ rmah@panix.com | every moment a challenge." ]
- [--------------------------------------------------]
-