Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!bin From: bin@primate.wisc.edu (Brain in Neutral) Newsgroups: comp.sys.mac.programmer Subject: Problem: getting strucRgn/contRgn of invisible windows Message-ID: <3839@uakari.primate.wisc.edu> Date: 27 Jan 91 02:17:23 GMT Organization: Cafe Limbo Lines: 18 I want to do some window positioning, taking into account the size of the window *including* the window frame - i.e., I want to use the strucRgn and not portRect. (Why? Well, suppose you want to position a window so that the title bar doesn't come under then menu bar. Then you need to know how tall the title bar is.) Trouble is, the strucRgn (and contRgn) fields of invisible windows seem to be empty. I thought at first that it was just a matter of the regions not being calculated until the window was shown, but after some messing about, it appears that the regions are set empty when windows are hidden, as well. Any way to determine the strucRgn of an invisible window? -- Paul DuBois dubois@primate.wisc.edu