Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!mondo.engin.umich.edu!mystone From: mystone@mondo.engin.umich.edu (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: variation code of WDEF's Message-ID: <1990Sep11.135803.1271@caen.engin.umich.edu> Date: 11 Sep 90 13:58:03 GMT References: <109540@tiger.oxy.edu> Sender: news@caen.engin.umich.edu (CAEN Netnews) Reply-To: mystone@caen.engin.umich.edu Organization: Computer Aided Engineering Network, University of Michigan Lines: 21 In article <109540@tiger.oxy.edu> sonenbli@oxy.edu (Andrew D. Sonenblick) writes: >I have figured out how to get the Variation code necessary to call >a WDEF from my own code, but I am wondering if there is/will be >a way to get at the code in a 32-clean environment. Currently the >code resides in the hi byte of the defProc handle in the window >record... but of course, like the handle attributes, they go >somewhere else in a 32 enviro... does anyone know where or how to >access it... A new call, _GetWVariant, was introduced with System 4.2 which returns the variation code of the window you pass to it. You should definitely use this call all the time instead of looking at the high byte of the defProcHandle. _______________________________________________________________________________ Dean Yu | E-mail: mystone@mondo.engin.umich.edu Patches 'R' Us | Real-mail: Dean Yu A Division of Cyberite Systems | 909 Church St Apt C | Ann Arbor, MI 48104 I speak for myself, so I'm not | Phone: 313 662-4073 going to disclaim anything. | 313 662-4163 -------------------------------------------------------------------------------