Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!hub!6600pete From: 6600pete@ucsbuxa.ucsb.edu (GurgleKat [Pete Gontier]) Newsgroups: comp.sys.mac.programmer Subject: WDEF not getting wInGoAway message though goAway box works Message-ID: <4273@hub.UUCP> Date: 11 Mar 90 22:08:13 GMT Sender: news@hub.UUCP Lines: 36 /* I'm writing a WDEF. When there is a click in its goAway box, my WDEF sends back wInGoAway and the window closes accordingly. So I have some decent reason to believe that the Window Manager sees my wInGoAway and tells the application about it. However, my WDEF never receives a corresponding draw message, i.e. one that says "Draw your goAway box in whatever highlighted form to indicate its selection," specifically param == wInGoAway. Why? Here's the offending code, methinks: */ long doWHit ( WindowPeek theWindow, long param, int varCode ) { Point p; long result = noHit; SetPt ( &p, LoWord ( param ), HiWord ( param ) ); /* ... */ { Rect boxR = GetGoAwayRect ( theWindow ); if ( PtInRect ( p, &boxR ) ) result = wInGoAway; } /* ... */ return ( result ); } /* unterminated comment follows... -- Pete Gontier | InterNet: 6600pete@ucsbuxa.ucsb.edu, BitNet: 6600pete@ucsbuxa Editor, Macker | Online Macintosh Programming Journal; mail for subscription Hire this kid | Mac, DOS, C, Pascal, asm, excellent communication skills