home *** CD-ROM | disk | FTP | other *** search
- 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
- From: sw@network-analysis-ltd.co.uk (Sak Wathanasin)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Popup CDEF
- Message-ID: <D2150050.hvnpmy@nan.network-analysis-ltd.co.uk>
- Date: 6 Nov 92 08:37:11 GMT
- Reply-To: sw@network-analysis-ltd.co.uk
- Organization: Network Analysis Ltd
- Lines: 25
- X-Mailer: uAccess - Macintosh Release: 1.6v1
-
-
- In article <1992Nov3.193130.6189@gallant.apple.com> (comp.sys.mac.programmer), alexr@apple.com (Alexander M. Rosenberg) writes:
-
- > The largest side effect of this change is that you can no longer call
- > GetMHandle to get the menu that the pop-up is using. It was always clearly
- > stated that you must look for it via the contrlData field.
-
- I don't know about "clearly"; both IM6 and Inside the CTB say:
-
- "You can obtain the menu handle and the menu ID of the menu associated
- with the pop-up control by dereferencing the contrlData field of the
- control record. The contrlData field is a handle to a block of private
- information."
-
- Note that it says "can" and not "should" or "must". That, and its being
- a handle to "a block of private information" made me think that it was safer
- not to rely on its being there in future versions (wrong....).
-
-
- Sak Wathanasin
- Network Analysis Limited
- 178 Wainbody Ave South, Coventry CV3 6BX, UK
-
- uucp: ...!uknet!nan!sw Phone: (+44) 203 419996
- AppleLink: NAN.LTD Internet: sw@network-analysis-ltd.co.uk
-