home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18075 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!agate!doc.ic.ac.uk!uknet!network-analysis-ltd.co.uk!sw
  2. From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Popup CDEF
  5. Message-ID: <D2150050.hvnpmy@nan.network-analysis-ltd.co.uk>
  6. Date: 6 Nov 92 08:37:11 GMT
  7. Reply-To: sw@network-analysis-ltd.co.uk
  8. Organization: Network Analysis Ltd
  9. Lines: 25
  10. X-Mailer: uAccess - Macintosh Release: 1.6v1
  11.  
  12.  
  13. In article <1992Nov3.193130.6189@gallant.apple.com> (comp.sys.mac.programmer), alexr@apple.com (Alexander M. Rosenberg) writes:
  14.  
  15. > The largest side effect of this change is that you can no longer call
  16. > GetMHandle to get the menu that the pop-up is using. It was always clearly
  17. > stated that you must look for it via the contrlData field.
  18.  
  19. I don't know about "clearly"; both IM6 and Inside the CTB say:
  20.  
  21. "You can obtain the menu handle and the menu ID of the menu associated
  22. with the pop-up control by dereferencing the contrlData field of the
  23. control record. The contrlData field is a handle to a block of private
  24. information."
  25.  
  26. Note that it says "can" and not "should" or "must". That, and its being
  27. a handle to "a block of private information" made me think that it was safer
  28. not to rely on its being there in future versions (wrong....).
  29.  
  30.  
  31. Sak Wathanasin
  32. Network Analysis Limited
  33. 178 Wainbody Ave South, Coventry CV3 6BX, UK
  34.  
  35. uucp:      ...!uknet!nan!sw  Phone: (+44) 203 419996
  36. AppleLink: NAN.LTD           Internet: sw@network-analysis-ltd.co.uk
  37.