Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!usc!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: variation code of WDEF's Message-ID: <10153@goofy.Apple.COM> Date: 11 Sep 90 17:20:31 GMT References: <109540@tiger.oxy.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 28 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... If all you want to do is find out what the window variant is, you can call the GetWVariant routine [FUNCTION GetWVariant(whichWindow:WindowPtr):INTEGER or pascal short GetWVariant(WindowPtr whichWindow) ]. According to Inside Mac volume 5, this is available in the Plus and on. If you want to set the variant, I'll leave that as an exercise for the reader, however suffice to say that it's all described in IM5... steve -- ______________________________________________________________________________ Steve Christensen Internet: stevec@goofy.apple.com Apple Computer, Inc. AppleLink: STEVEC 20525 Mariani Ave, MS 81-CS CompuServe: 76174,1712 Cupertino, CA 95014 "You just contradicted me." "No I didn't." ______________________________________________________________________________