Path: utzoo!attcan!uunet!cbmvax!vu-vlsi!swatsun!jackiw From: jackiw@cs.swarthmore.edu (Nick Jackiw) Newsgroups: comp.sys.mac.programmer Subject: Re: Calling WDefProcs Manually Message-ID: <2602@ilium.cs.swarthmore.edu> Date: 22 Mar 89 18:32:51 GMT References: Reply-To: jackiw@ilium.UUCP (Nick Jackiw) Organization: Visual Geometry Project, Swarthmore College, PA Lines: 27 In article rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) writes: > I devised the following solution, but it does not work. Consider: [Source code deleted; attempting to determine how to detect in-title-bar hits on a DA window (and therefore a window for which FindWindow always returns inSysWindow).] > Anybody have any idea why this is not working? > Rob Johnston. Not offhand. But you might want to try instead checking whether the pt lies within the windows strucRgn but not in its contentRgn. This'll tell you if the hit is in the frame or "inside" the window. (Note: Although structure-content includes the WHOLE frame, i. e. title bar+rectangular outline+optional dropshadow, I don't think FindWindow reports any hits in the non-titlebar frame.) -- +-------------------+-jackiw@cs.swarthmore.edu / !rutgers!bpa!swatsun!jackiw-+ | nicholas jackiw | jackiw%campus.swarthmore.edu@swarthmr.bitnet | +-------------------+-VGP/MathDept/Swarthmore College, Swarthmore, PA 19081--+ "Ah...I've got this CHRONIC pain." _True Believer_