🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Good hash function on window handle?

#2534
From: Ken Dickey
Date: Wed, 08 May 1991 20:31
14 lines
911 bytes
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()?

I suggest that instead of putting the handle in a table, you put the
table in the handle.

[i.e. use the cbWndExtra bytes and {Set,Get}WindowLong() to
save/restore an index or data handle.  Then use the window handle
itself to get to your info.]


-Ken Dickey				kend@data.uucp
Technical Details
Message-ID: <488@data.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!zephyr.ens.tek.com!tektronix!percy!data!kend
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!wuarchive!uunet!zephyr.ens.tek.com!tektronix!percy!data!kend
From: kend@data.UUCP (Ken Dickey)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Good hash function on window handle?
Message-ID: <488@data.UUCP>
Date: 8 May 91 20:31:31 GMT
References: <24607@well.sf.ca.us>
Distribution: comp
Organization: Microcosm, Beaverton, OR
Lines: 14
CC: al@well.sf.ca.us