Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!ns-mx!ccad.uiowa.edu!cadsi From: cadsi@ccad.uiowa.edu (CADSI) Newsgroups: comp.windows.ms.programmer Subject: Re: Good hash function on window handle? Message-ID: <1991May9.062449.4722@ccad.uiowa.edu> Date: 9 May 91 06:24:49 GMT References: <1991May9.061744.6829@ccad.uiowa.edu> Distribution: comp Organization: CAD-Research, U. of Iowa, Iowa City, Iowa Lines: 27 From article <1991May9.061744.6829@ccad.uiowa.edu>, by cadsi@ccad.uiowa.edu (CADSI): > From article <488@data.UUCP>, by kend@data.UUCP (Ken Dickey): >> 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 have a class this does this if you want it. > If you wanna store HANDLES in the table (which is itself a HANDLE) this > table will handle that too. All you have to supply the map and compare > functions as a sort of sub-class. > No real big deal, Just lock the handle the HashTable class > gives you for mapping and lock both during the compare. I think I apologize to Mr. Bandwidth. I misread that last post I responded to. I have not come up with a good map function based on the handle from CreateWindow. I just have a hashtable for the taking. No more bandwidth.... |----------------------------------------------------------------------------| |Tom Hite | The views expressed by me | |Manager, Product development | are mine, not necessarily | |CADSI (Computer Aided Design Software Inc. | the views of CADSI. | |----------------------------------------------------------------------------|