Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!sun-barr!decwrl!shelby!portia!jessica!duggie From: duggie@jessica.Stanford.EDU (Doug Felt) Newsgroups: comp.sys.mac.programmer Subject: Re: WDEF not getting wInGoAway message though goAway box works Message-ID: <10097@portia.Stanford.EDU> Date: 13 Mar 90 01:04:28 GMT References: <4273@hub.UUCP> Sender: USENET News System Reply-To: duggie@jessica.Stanford.EDU (Doug Felt) Organization: Stanford University Lines: 24 In article <4273@hub.UUCP> 6600pete@ucsbuxa.ucsb.edu (GurgleKat [Pete Gontier]) writes: >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? Occasionally the writers of the Toolbox, in their infinite wisdom, see fit to leave garbage in the unused portions of parameters they send to us mere mortals. The parameter passed with the draw message to a WDEF apparently only uses the lower 16 bits. I suggest trying (param & 0xffff) == wInGoAway. You might wonder why this isn't documented. I do. >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 Doug Felt