Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!rochester!pt.cs.cmu.edu!henry!hairston From: hairston@henry.ece.cmu.edu (David Hairston) Newsgroups: comp.sys.mac.programmer Subject: Re: WDEF Question Message-ID: Date: 12 Dec 90 18:58:11 GMT References: <252u3129.660984232@fergvax> Distribution: comp Organization: Gaia II Lines: 21 In-reply-to: 252u3129@fergvax.unl.edu's message of 12 Dec 90 06:43:52 GMT [252u3129@fergvax.unl.edu (Mike Gleason) writes:] [] I have decided that I want to write a custom window definition. But [] first, I grabbed an existing WDEF resource (a Windoid WDEF in Think C's [] Art Class project to be exact) and all I want to do for the time being is [] put up a window using the windoid. I could have sworn I used to be able [] to write [] [] w = NewWindow(0L,&rekt,"\pBlah",isVisible,ProcID,-1L,hasGoAway,refcon); [] [] where ProcID is the resource ID of my WDEF (the Windoid's is 200). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not quite ... (short) ProcID = (16 * (WDEF rsrc ID)) + (variation code) assuming a varCode of 0 and WDEF ID of 200 then you want ProcID = 3200. additional references: IM-I, Window Manager. -dave- hairston@henry.ece.cmu.edu