Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!bu.edu!dartvax!eleazar.dartmouth.edu!mjm From: mjm@eleazar.dartmouth.edu (Michael McClennen) Newsgroups: comp.sys.mac.programmer Subject: Re: How do you find a window's location? Keywords: window Message-ID: <22352@dartvax.Dartmouth.EDU> Date: 29 May 90 16:05:13 GMT References: <3258@usceast.UUCP> Sender: news@dartvax.Dartmouth.EDU Distribution: na Lines: 14 jwwalker@usceast.UUCP (Jim Walker) writes: >I know how to set a window's location with MoveWindow and >SizeWindow, but how do you *find* a window's location? If the >window is visible, I can use > (**((WindowPeek)window_ptr)->contRgn).rgnBBox >but that seems to contain garbage when the window is invisible. >Yet the Window Manager somehow keeps track of the locations of >invisible windows. How about checking the grafPort's portRect? Michael McClennen Dartmout College Academic Computing