Path: 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 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