Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!microsoft!davidds From: davidds@microsoft.UUCP (David D'SOUZA) Newsgroups: comp.windows.ms.programmer Subject: Re: Good hash function on window handle? Message-ID: <72301@microsoft.UUCP> Date: 12 May 91 21:25:51 GMT References: <24607@well.sf.ca.us> Reply-To: davidds@microsoft.UUCP (David D'SOUZA) Distribution: comp Organization: Microsoft Corp., Redmond WA Lines: 20 You don't need a hash function. If you registered the Window class, you simply need to allocate extra window words and use that to store your additional data. Check out the SetWindowWord and GetWindowWord inaddition to the CLASS struct. If you didn't register the Window class, use the Window properties. Check out the SetProp, GetProp, and RemoveProp functions. -Dave In article <24607@well.sf.ca.us> al@well.sf.ca.us (Alfred Fontes) writes: >Has anybody come up with an exceptionally good hash function for a table >keyed on the handle returned by CreateWindow()? > >Al Fontes >al@well.sf.ca.us >uunet!apple!well!al