Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!bin From: bin@primate.wisc.edu (Brain in Neutral) Newsgroups: comp.sys.mac.programmer Subject: Re: How to get sizeRect? Message-ID: <3770@uakari.primate.wisc.edu> Date: 17 Jan 91 16:29:44 GMT References: <1991Jan16.231355.3992@csn.org> Sender: bin@primate.wisc.edu Reply-To: bin@primate.wisc.edu Lines: 19 From article <1991Jan16.231355.3992@csn.org>, by bernard@boulder.colorado.edu (Bernie Bernstein): > I would like to allow the user to grow a window to the size of his/her > largest monitor or beyond. I have noticed that in the Finder, the size > of the folder windows may not exceed the size of the main monitor (the one > with the menu bar) even if the window is in a larger monitor. I want to > avoid this problem by asking how one properly gets the sizeRect for > GrowWindow. Call GetGrayRgn() to get the region defining the desktop area (union of screen areas - menu bar), and use the bounding box of the region. This is somewhere in Inside Macintosh V (Graphics Device chapter, I believe). Possibly you need to check whether the trap exists and use the low memory global GrayRgn instead if it doesn't. Of course, depending on how GetGrayRgn() is implemented, it might simply return the value of GrayRgn itself! Anyone know? -- Paul DuBois dubois@primate.wisc.edu