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