Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!fornax!mcdonald From: mcdonald@fornax.UUCP (Ken Mcdonald) Newsgroups: comp.sys.mac.programmer Subject: control definition functions without CDEFs? Message-ID: <423@fornax.UUCP> Date: 12 Mar 90 04:07:16 GMT Distribution: na Organization: School of Computing Science, SFU, Burnaby, B.C. Canada Lines: 17 I'm writing up a bit of source which, eventually, I'd like to distribute. It uses custom CDEFs, but one thing I'd like to do is to avoid making users of the source copy extra CDEFs into their applications--that is, I'd like to build the custom controls entirely within the source. The first problem I've run across (there may be others) is the fact the contrlDefProc field in a control must be set to a HANDLE to the control definition procedure--so how do I get a handle to the procedure I'm using, which is defined in my source? Second, IM mentions that "You should never have to access this field directly" (an obvious lie :-) ), so if I insist on doing things like this, is the system going to burn me? Any other suggestions in this admittedly unusual endeavour would be most gratefully received. Thanks, Ken McDonald mcdonald@cs.sfu.ca