Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!ml10+ From: ml10+@andrew.cmu.edu (Michael A. Libes) Newsgroups: comp.sys.mac.programmer Subject: Re: window location Message-ID: <4Zt2YJO00WBM41zExG@andrew.cmu.edu> Date: 22 Feb 90 18:01:57 GMT References: <14210@reed.UUCP> Organization: Class of '91, Carnegie Mellon, Pittsburgh, PA Lines: 13 In-Reply-To: <14210@reed.UUCP> >Is this the easiest way to get the global location of a window (in C): (?) >locRect = *(Rect *) (*(short **)(((WindowPeek)(theWindow))->contRgn)+1); I use LocalToGlobal to get the window posistion: Point p; SetPt(&p,wWindow->portRect.left,wWindow->portRect.top); SetPort(wWindow); LocalToGlobal(&p); - luni