Article View: comp.windows.ms.programmer
Article #2613Re^2: Good hash function on window handle?
From: Ken Dickey
Date: Mon, 13 May 1991 19:23
Date: Mon, 13 May 1991 19:23
17 lines
1043 bytes
1043 bytes
al@well.sf.ca.us (Alfred Fontes) writes:
>kend@data.UUCP (Ken Dickey) writes:
>>[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.]
>This is a good idea, but it won't work for pre-registered classes,
>such as controls and the MDI client window.
I don't know your app or how many windows you are dealing with, but
note that for small tables (e.g. N < 100) linear search beats hashing.
-Ken Dickey
Technical Details
Message-ID:
<491@data.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!percy!data!kendReferences:
<24607@well.sf.ca.us> <488@data.UUCP> <24720@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!mips!spool.mu.edu!snorkelwacker.mit.edu!mit-eddie!uw-beaver!zephyr.ens.tek.com!tektronix!percy!data!kend From: kend@data.UUCP (Ken Dickey) Newsgroups: comp.windows.ms.programmer Subject: Re^2: Good hash function on window handle? Message-ID: <491@data.UUCP> Date: 13 May 91 19:23:25 GMT References: <24607@well.sf.ca.us> <488@data.UUCP> <24720@well.sf.ca.us> Distribution: comp Organization: Microcosm, Beaverton, OR Lines: 17