Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!stevec From: stevec@Apple.COM (Steve Christensen) Newsgroups: comp.sys.mac.programmer Subject: Re: WDEF Question Message-ID: <47306@apple.Apple.COM> Date: 12 Dec 90 18:17:22 GMT References: <252u3129.660984232@fergvax> Distribution: comp Organization: Apple Computer Inc., Cupertino, CA Lines: 20 252u3129@fergvax.unl.edu (Mike Gleason) writes: >[that he wanted to create a window with his own custom window definition > procedure, but he was getting the default window instead...] The ProcID you specify in NewWindow is related to the WDEF's resource ID, but not the same beast. It's defined as: 16 * WDEF resource ID + variation code which means any particular WDEF can support up to 16 variations on a theme. It also means that WDEF resource IDs come in the range of 0-4095 (that's 2^12 - 1, right?)... steve -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Steve Christensen | Apple Computer, Inc. | Disclaimer: | 20525 Mariani Ave, MS-81CS | the above may be stevec@apple.com | Cupertino, CA 95014 | a lie...or not.