🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2599

Re: Good hash function on window handle?

#2599
From: David D'SOUZA
Date: Sun, 12 May 1991 21:25
20 lines
1120 bytes
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
Technical Details
Message-ID: <72301@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!microsoft!davidds
References: <24607@well.sf.ca.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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