Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!rex!samsung!uunet!microsoft!smeans From: smeans@microsoft.UUCP (Scott MEANS) Newsgroups: comp.os.os2 Subject: Re: LS_QUERYITEMHANDLE Message-ID: <54002@microsoft.UUCP> Date: 8 Apr 90 23:55:13 GMT References: <1990Apr6.162441.8666@murdoch.acc.Virginia.EDU> Reply-To: smeans@microsoft.UUCP (Scott MEANS) Distribution: usa Organization: Microsoft Corp., Redmond WA Lines: 15 I think the problem here is that there is some misunderstanding about the purpose of item handles in a listbox. An item handle is just a way to associate an arbitrary ULONG value with a specific item in a listbox. In your example you would first send the LM_INSERTITEM and then immediately send LM_SETITEMHANDLE with the item number you got from LM_INSERTITEM and the address of the structure you want to attach to the item. Then later when you want to retrieve the address of the structure that goes with a given item you just send the LM_QUERYITEMHANDLE message with the proper iItem. -- /\/\ //\/\\ \>